Enable automatic garbage collection
This commit is contained in:
parent
c132be812e
commit
97642bd6a1
1 changed files with 5 additions and 0 deletions
|
|
@ -26,6 +26,11 @@
|
|||
max-free = lib.mkDefault (3000 * 1024 * 1024);
|
||||
min-free = lib.mkDefault (512 * 1024 * 10);
|
||||
};
|
||||
gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 30d";
|
||||
randomizedDelaySec = "60 min";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.nix-daemon.serviceConfig.OOMScoreAdjust = 250;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue