diff --git a/systems/configuration.nix b/systems/configuration.nix index dd86329..15ab3da 100644 --- a/systems/configuration.nix +++ b/systems/configuration.nix @@ -187,11 +187,21 @@ connect-timeout = 20; }; + extraOptions = '' + min-free = ${toString (100 * 1024 * 1024)} + max-free = ${toString (1024 * 1024 * 1024)} + ''; + gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 30d"; }; + + optimize = { + automatic = true; + dates = [ "01:00" ]; + }; }; system = {