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