remove nix gc cleaning script and disable keep-outputs instead
This commit is contained in:
parent
5a0a9b9819
commit
67b829783d
2 changed files with 0 additions and 11 deletions
|
@ -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"];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue