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

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

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

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

will not exist.

Making the addition conditional on `cfg.settings` actually having
content, which would mean `xdg.configFile."hypr/hypridle.conf"` does
exist, avoids the error.
2024-11-24 17:41:50 +01:00
..
basic-configuration.nix hypridle: add module 2024-05-05 11:13:18 +02:00
default.nix hypridle: fix service when no config file 2024-11-24 17:41:50 +01:00
hypridle.conf hypridle: add module 2024-05-05 11:13:18 +02:00
no-configuration.nix hypridle: fix service when no config file 2024-11-24 17:41:50 +01:00