diff --git a/machines/_base.nix b/machines/_base.nix index 4c40420..f0e5167 100644 --- a/machines/_base.nix +++ b/machines/_base.nix @@ -55,14 +55,16 @@ in { }; # https://nixos.wiki/wiki/Storage_optimization - gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 30d"; - }; + # gc = { + # automatic = true; + # dates = "weekly"; + # options = "--delete-older-than 30d"; + # }; + + # to free up to 10GiB whenever there is less than 1GiB left extraOptions = '' - min-free = ${toString (100 * 1024 * 1024)} - max-free = ${toString (1024 * 1024 * 1024)} + min-free = ${toString (1024 * 1024 * 1024)} + max-free = ${toString (1024 * 1024 * 1024 * 10)} ''; };