add automatic nix store garbage collection

This commit is contained in:
wi11-holdsworth 2025-09-03 17:26:02 +10:00
parent 250563445b
commit 32f04d5e47

View file

@ -5,7 +5,16 @@ in
{ {
config = lib.mkIf config.${feature}.enable { config = lib.mkIf config.${feature}.enable {
nix = { nix = {
optimise.automatic = true; gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 20d";
persistent = true;
};
optimise = {
automatic = true;
persistent = true;
};
settings = { settings = {
experimental-features = [ experimental-features = [
"nix-command" "nix-command"