mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 18:29:47 +01:00
xscreensaver: restart if settings change
This commit is contained in:
parent
dbf6b2d2ab
commit
152769aed9
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ in {
|
|||
Description = "XScreenSaver";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
|
||||
# Make sure the service is restarted if the settings change.
|
||||
X-Restart-Triggers =
|
||||
[ (builtins.hashString "md5" (builtins.toJSON cfg.settings)) ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
|
Loading…
Reference in a new issue