From ca14e8b5735f7ac9232631bb08ea0121e96312df Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 9 Sep 2023 11:58:01 +0200 Subject: [PATCH] improve nix gc --- base.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base.nix b/base.nix index 0cf9acb..a373332 100644 --- a/base.nix +++ b/base.nix @@ -47,6 +47,10 @@ nix.gc.automatic = true; nix.gc.dates = "weekly"; nix.gc.options = "--delete-older-than 30d"; + nix.extraOptions = '' + min-free = ${toString (1 * 1024 * 1024 * 1024)} + max-free = ${toString (5 * 1024 * 1024 * 1024)} + ''; services.thermald.enable = lib.mkIf (config.nixpkgs.system == "x86_64-linux") true;