From 0279df6b1128a33a8a89d5df0089d05dcce575d6 Mon Sep 17 00:00:00 2001 From: flowey Date: Fri, 11 Sep 2026 02:06:39 +0000 Subject: [PATCH] cI: improve cache management (#2) Co-authored-by: Floweynt <50057682+Floweynt@users.noreply.github.com> Reviewed-on: https://git.floweytf.com/server/server-config/pulls/2 --- containers/server-n0/git.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/containers/server-n0/git.nix b/containers/server-n0/git.nix index 07786df..b7ac5ce 100644 --- a/containers/server-n0/git.nix +++ b/containers/server-n0/git.nix @@ -163,10 +163,9 @@ in trusted-public-keys = [ "microvm.cachix.org-1:oXnBc6hRE3eX5rSYdRyMYXnfzcCxC7yKPTbZXALsqys=" ]; }; - nix.gc = { - automatic = true; - dates = "daily"; - options = "--delete-older-than 14d"; + nix.settings = { + min-free = 5 * 1024 * 1024 * 1024; + max-free = 10 * 1024 * 1024 * 1024; }; # nix.optimise.automatic = true; - doesn't work with microvm.writableStoreOverlay