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";
};
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"];
};
}