Auto-optimise store & garbage collect daily
This commit is contained in:
parent
6b61374ba2
commit
ed15c47f05
1 changed files with 8 additions and 1 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue