Enable automatic garbage collection

This commit is contained in:
Jakob Lechner 2024-07-17 23:07:53 +02:00
parent c132be812e
commit 97642bd6a1

View file

@ -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;