nix: optimise gc persistently

This commit is contained in:
Aly Raffauf 2024-05-25 14:33:45 -04:00
parent 5de752533a
commit 7432c000e1

View file

@ -126,10 +126,10 @@
nix = { nix = {
optimise.automatic = true; optimise.automatic = true;
gc = { gc = {
# Delete generations older than 7 days.
automatic = true; automatic = true;
dates = "daily"; dates = "daily";
options = "--delete-older-than 3d"; options = "--delete-older-than 3d";
persistent = true;
randomizedDelaySec = "60min"; randomizedDelaySec = "60min";
}; };
# Run GC when there is less than 100MiB left. # Run GC when there is less than 100MiB left.