remove nix gc cleaning script and disable keep-outputs instead

This commit is contained in:
xunuwu 2025-06-22 04:30:03 +02:00
parent 5a0a9b9819
commit 67b829783d
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
2 changed files with 0 additions and 11 deletions

View file

@ -8,14 +8,4 @@
options = "--delete-older-than 14d"; options = "--delete-older-than 14d";
}; };
nix.optimise.automatic = true; nix.optimise.automatic = true;
systemd.services.remove-old-nix-gc-roots = let
beforeDate = "last month";
in {
description = "Remove old nix gc roots";
script = "exec ${lib.getExe pkgs.findutils} /nix/var/nix/gcroots/auto -not -newermt \"${beforeDate}\" -delete";
serviceConfig.Type = "oneshot";
before = ["nix-gc.service"];
requiredBy = ["nix-gc.service"];
};
} }

View file

@ -11,7 +11,6 @@
settings = { settings = {
builders-use-substitutes = true; builders-use-substitutes = true;
keep-outputs = true;
keep-derivations = true; keep-derivations = true;
accept-flake-config = true; accept-flake-config = true;
use-xdg-base-directories = true; use-xdg-base-directories = true;