From 950673cec79298d9a1072499e0181849545376e2 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Fri, 1 Mar 2024 09:07:06 +0100 Subject: [PATCH] pueue: always write configuration file Pueue requires the configuration file to contain a `shared` entry. We therefore unconditionally add it as `shared: {}`. Fixes #4295 --- modules/services/pueue.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/services/pueue.nix b/modules/services/pueue.nix index 1431c1cd..f0603bb4 100644 --- a/modules/services/pueue.nix +++ b/modules/services/pueue.nix @@ -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 = {