diff --git a/modules/services/xscreensaver.nix b/modules/services/xscreensaver.nix index 73a365aa7..ac6194e70 100644 --- a/modules/services/xscreensaver.nix +++ b/modules/services/xscreensaver.nix @@ -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 = {