diff options
Diffstat (limited to 'vps-configuration.nix')
-rw-r--r-- | vps-configuration.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vps-configuration.nix b/vps-configuration.nix index 4897b95..5c7d790 100644 --- a/vps-configuration.nix +++ b/vps-configuration.nix @@ -66,6 +66,18 @@ in { interfaces.ens3.useDHCP = true; }; + nix = { + gc = { + automatic = true; + options = "--delete-older-than 7d"; + }; + # min-free 1G + extraOptions = '' + min-free = ${toString (1024 * 1024 * 1024)} + ''; + }; + + environment = { systemPackages = with pkgs; [ vim |