1
0
Fork 0
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:
Robert Helgesson 2020-08-02 14:05:18 +02:00
parent dbf6b2d2ab
commit 152769aed9
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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 = {