Auto cleanup older generations

This commit is contained in:
Alex Davies 2024-06-05 12:24:17 -03:00
parent 138933566b
commit a3a16daf2a
2 changed files with 8 additions and 3 deletions

View File

@ -374,11 +374,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1714076141,
"narHash": "sha256-Drmja/f5MRHZCskS6mvzFqxEaZMeciScCTFxWVLqWEY=",
"lastModified": 1717196966,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "7bb2ccd8cdc44c91edba16c48d2c8f331fb3d856",
"rev": "57610d2f8f0937f39dbd72251e9614b1561942d8",
"type": "github"
},
"original": {

View File

@ -76,6 +76,11 @@
#Deduplicate nix store on a timer
nix.optimise.automatic = true;
#Delete old generations
nix.gc.automatic = true;
nix.gc.dates = "weekly";
nix.gc.options = "--delete-older-than 30d";
programs.neovim = {
enable = true;
defaultEditor = true;