1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos: enable automatic GC

This commit is contained in:
Matt Layher 2020-01-21 12:31:16 -05:00
parent 9621238657
commit adf6d0b994

View file

@ -107,6 +107,17 @@ in {
unstable.corerad
];
# Automatic Nix GC.
nix = {
gc = {
automatic = true;
dates = "weekly";
};
extraOptions = ''
min-free = ${toString (500 * 1024 * 1024)}
'';
};
services = {
apcupsd = { enable = true; };