Browse Source

Auto optimize storage

master
dump_stack() 2 years ago
parent
commit
f118ba0912
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      configuration.nix

+ 7
- 3
configuration.nix View File

@@ -52,7 +52,11 @@ in {
system.autoUpgrade.enable = true;
system.stateVersion = "18.09";

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