Skip to content

Commit

Permalink
Delete generations older than 30d when garbage collecting
Browse files Browse the repository at this point in the history
  • Loading branch information
minijackson committed May 27, 2018
1 parent 961e517 commit 3cb8442
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@

nixpkgs.config.allowUnfree = true;

nix.gc.automatic = true;
nix.gc.dates = "03:15";
nix.gc = {
automatic = true;
dates = "03:15";
options = "--delete-older-than 30d";
};

system.autoUpgrade.enable = true;

Expand Down

0 comments on commit 3cb8442

Please sign in to comment.