added automatic garbage collect

This commit is contained in:
willifan 2024-07-06 23:21:02 +02:00
parent fe70a62430
commit d4f3f586c6
2 changed files with 10 additions and 0 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./autoupdate.nix
./garbage-collect.nix
];
system.stateVersion = "23.11";
}

View file

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
nix.gc = {
automatic = true;
dates = "04:30";
persistent = true;
options = "--delete-older-than 10d";
};
}