mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
xscreensaver: restart if settings change
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user