Browse Source

Auto optimize storage

master
dump_stack() 1 year ago
parent
commit
4e87fba917
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      configuration.nix

+ 7
- 3
configuration.nix View File

@@ -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…
Cancel
Save