Run nix gc weekly

This commit is contained in:
Amanda Graven 2023-10-03 17:03:44 +02:00
parent 8c1c1e864b
commit 33ba5078e7
4 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{ ... }:
# Configuration options for the nix package manager
{
nix.gc = {
# Run garbage collection automatically
automatic = true;
# Run it once a week
dates = "weekly";
options = "--delete-older-than 30d";
};
}