auto garbage collect

This commit is contained in:
foosinn 2022-01-31 14:44:15 +01:00
parent 0ff07ffde9
commit 69459cf910
2 changed files with 13 additions and 1 deletions

View file

@ -15,8 +15,9 @@
./roles/desktop.nix
./roles/dev.nix
./roles/mail.nix
./roles/vpn.nix
./roles/network.nix
./roles/nix.nix
./roles/vpn.nix
./roles/work.nix
];

11
roles/nix.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
}