1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-05 01:19:46 +01:00
home-manager/tests/modules/services/hyprpaper
Sebastián Zavala Villagómez 2777de38dd
hyprpaper: fix service when no config file
The systemd user service depends on

  config.xdg.configFile."hypr/hyprpaper.conf".source

for `X-Restart-Triggers`. When `cfg.settings` is the default `{}`,
this causes failure since

  config.xdg.configFile."hypr/hyprpaper.conf".source

will not exist.

Making the addition conditional on `cfg.settings` actually having
content, which would mean `xdg.configFile."hypr/hyprpaper.conf"` does
exist, avoids the error.

(cherry picked from commit bd58a1132e)
2024-11-24 14:06:48 +01:00
..
basic-configuration.nix hyprpaper: add module 2024-05-10 15:35:59 +02:00
default.nix hyprpaper: fix service when no config file 2024-11-24 14:06:48 +01:00
hyprpaper.conf hyprpaper: add module 2024-05-10 15:35:59 +02:00
no-configuration.nix hyprpaper: fix service when no config file 2024-11-24 14:06:48 +01:00