dsriggs1 / dotfiles

Storing nixos configuration
0 stars 0 forks source link

Add specifications for auto optimization/garbage collection #3

Open dsriggs1 opened 4 months ago

dsriggs1 commented 4 months ago

I think the following accomplishes this, but need to check if old generations are getting removed:

nix.settings.auto-optimise-store = true; nix.gc.automatic = true; nix.gc.dates = "daily"; nix.gc.options = "--delete-older-than 5";

Need to verify that this works, expectation is that garbage collection will run everyday and keep last 5 generations.