1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

GC added automatic, persistent garbage collection

Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
This commit is contained in:
Stefan Ellmauthaler 2021-11-17 14:28:16 +01:00
parent 76ed466b80
commit 9dcf54d963

View File

@ -39,6 +39,17 @@
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
gc = {
automatic = true;
persistent = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
# Free up to 50GiB whenever there is less than 10GiB left.
extraOptions = ''
min-free = ${toString (10 * 1024 * 1024 * 1024)}
max-free = ${toString (50 * 1024 * 1024 * 1024)}
'';
}; };
nixpkgs = { nixpkgs = {