mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01: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:
parent
6d8ed2b4fc
commit
a3f4b998ec
1 changed files with 3 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue