Add nix optimise automatically
This commit is contained in:
parent
afd3a76470
commit
7c309df1ad
1 changed files with 6 additions and 1 deletions
|
@ -2,10 +2,15 @@
|
||||||
# Enable flakes: https://nixos.wiki/wiki/Flakes
|
# Enable flakes: https://nixos.wiki/wiki/Flakes
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
nix.optimise = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "daily";
|
||||||
|
};
|
||||||
|
|
||||||
# Garbage collection -- Keep the system clean
|
# Garbage collection -- Keep the system clean
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "daily";
|
dates = "daily";
|
||||||
options = "--delete-older-than 7d";
|
options = "--delete-older-than 7d";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue