Auto-optimise store & garbage collect daily

This commit is contained in:
Fern Garden 2025-09-08 18:57:30 +08:00
parent 6b61374ba2
commit ed15c47f05

View file

@ -14,6 +14,12 @@ with lib; {
# Set $NIX_PATH.
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
# Optimise store.
optimise = {
automatic = true;
dates = "daily";
};
settings = {
# Enable flakes.
experimental-features = [
@ -289,7 +295,8 @@ with lib; {
enable = true;
clean = {
enable = true;
extraArgs = "--keep 5";
extraArgs = "--keep 3";
dates = "daily";
};
};