add auto gc

closed #7
main
Lzebulon 2026-02-11 15:39:12 +01:00
parent f2aeee6fd5
commit 6238a10288
No known key found for this signature in database
GPG Key ID: D6CDAB8050CBBE7D
2 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,7 @@ in
./nullmailer.nix ./nullmailer.nix
./packages.nix ./packages.nix
./ssh.nix ./ssh.nix
./store.nix
./users.nix ./users.nix
./virtualisation.nix ./virtualisation.nix
]; ];

View File

@ -0,0 +1,10 @@
{...}:
{
nix.gc = {
automatic = true;
dates = "04:15";
# avoid to run nix gc on all machine at the same time
randomizedDelaySec = "1h";
options = "--delete-older-than 14d";
};
}