diff --git a/modules/services/xscreensaver.nix b/modules/services/xscreensaver.nix index 73a365aa..ac6194e7 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 = {