Auto optimize storage
This commit is contained in:
parent
583467ffd4
commit
4e87fba917
@ -65,7 +65,11 @@ in {
|
||||
system.stateVersion = "18.09";
|
||||
system.autoUpgrade.enable = true;
|
||||
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "weekly";
|
||||
nix.gc.options = "--delete-older-than 30d";
|
||||
nix = {
|
||||
optimise.automatic = true;
|
||||
gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user