Increase thresholds for automatic garbage collection.

This commit is contained in:
Tom Alexander
2026-08-10 22:38:26 -04:00
parent 4a772b7276
commit 1845b1ac30

View File

@@ -124,8 +124,8 @@ in
]; ];
nix.settings.trusted-users = [ "@wheel" ]; nix.settings.trusted-users = [ "@wheel" ];
nix.settings.connect-timeout = 5; nix.settings.connect-timeout = 5;
nix.settings.min-free = 128000000; nix.settings.min-free = 5 * 1024 * 1024 * 1024; # Kick off garbage collect if space for nix store is less than 5 GiB
nix.settings.max-free = 1000000000; nix.settings.max-free = 10 * 1024 * 1024 * 1024; # Run that garbage collect until at least 10 GiB are free.
nix.settings.fallback = true; nix.settings.fallback = true;
nix.settings.warn-dirty = false; nix.settings.warn-dirty = false;
nix.settings.fsync-metadata = true; nix.settings.fsync-metadata = true;