1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-13 06:39:44 +01:00

pueue: always write configuration file

Pueue requires the configuration file to contain a `shared` entry. We
therefore unconditionally add it as `shared: {}`.

Fixes #4295
This commit is contained in:
Robert Helgesson 2024-03-01 09:07:06 +01:00 committed by Mikilio
parent c2c830e86a
commit c13e6dc518
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -6,7 +6,8 @@ let
cfg = config.services.pueue;
yamlFormat = pkgs.formats.yaml { };
configFile = yamlFormat.generate "pueue.yaml" cfg.settings;
configFile =
yamlFormat.generate "pueue.yaml" ({ shared = { }; } // cfg.settings);
in {
meta.maintainers = [ maintainers.AndersonTorres ];
@ -39,8 +40,7 @@ in {
home.packages = [ cfg.package ];
xdg.configFile =
mkIf (cfg.settings != { }) { "pueue/pueue.yml".source = configFile; };
xdg.configFile."pueue/pueue.yml".source = configFile;
systemd.user = {
services.pueued = {