mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
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 <khaneliman12@gmail.com>
This commit is contained in:
@@ -86,7 +86,9 @@ in
|
|||||||
Description = "wpaperd";
|
Description = "wpaperd";
|
||||||
PartOf = [ config.wayland.systemd.target ];
|
PartOf = [ config.wayland.systemd.target ];
|
||||||
After = [ 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 = {
|
Service = {
|
||||||
|
|||||||
Reference in New Issue
Block a user