Merge branch 'auto-gc' into 'main'

add auto gc

Closes #7

See merge request nounous/nixos!58
main
lzebulon 2026-06-06 17:15:46 +02:00
commit d5872883d8
2 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,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";
};
}