added weekly timers to garbage collect and optimize

made garbage collector collect older then a week
This commit is contained in:
Leyla Becker 2024-10-03 16:48:35 +02:00
parent bbb4be8ac8
commit cfa0f64f70

View file

@ -8,8 +8,15 @@
experimental-features = ["nix-command" "flakes"]; experimental-features = ["nix-command" "flakes"];
trusted-users = ["leyla"]; trusted-users = ["leyla"];
}; };
gc.automatic = true; gc = {
optimise.automatic = true; automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
optimise = {
automatic = true;
dates = "weekly";
};
}; };
# Enable networking # Enable networking