From a3f4b998ecaa9cf87f1a6244a49e5ed96a81f03e Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Fri, 11 Jul 2025 10:37:09 -0500 Subject: [PATCH] wpaperd: handle empty settings properly Currently we create a systemd unit that will throw an error when settings aren't configured because we try to link to a file that wont be created with empty config. Signed-off-by: Austin Horstman --- modules/services/wpaperd.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/services/wpaperd.nix b/modules/services/wpaperd.nix index 79cc8efc9..8b68292be 100644 --- a/modules/services/wpaperd.nix +++ b/modules/services/wpaperd.nix @@ -86,7 +86,9 @@ in Description = "wpaperd"; PartOf = [ config.wayland.systemd.target ]; After = [ config.wayland.systemd.target ]; - X-Restart-Triggers = [ "${config.xdg.configFile."wpaperd/wallpaper.toml".source}" ]; + X-Restart-Triggers = lib.mkIf (cfg.settings != { }) [ + "${config.xdg.configFile."wpaperd/wallpaper.toml".source}" + ]; }; Service = {