mirror of
https://github.com/nmasur/dotfiles
synced 2026-10-29 17:45:02 +00:00
auto wake and sleep for garbage collection
only sleep again for non-servers
This commit is contained in:
1 parent
09de243bd3
commit
ed19eaafd1
1 file changed
+4
@@ -11,6 +11,10 @@
|
||||
# This setting only applies to NixOS, different on Darwin
|
||||
nix.gc.dates = "weekly";
|
||||
|
||||
systemd.timers.nix-gc.timerConfig = { WakeSystem = true; };
|
||||
systemd.services.nix-gc.postStop =
|
||||
lib.mkIf (!config.server) "systemctl suspend";
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user