From f65c1dd5c3f05b39e9cf5e089a6bf43b200a8550 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Sun, 22 Mar 2026 01:55:05 -0400 Subject: [PATCH] nix: enable weekly garbage collection of generations older than 30d --- system/common.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/common.nix b/system/common.nix index 35b9194..fd48359 100644 --- a/system/common.nix +++ b/system/common.nix @@ -70,6 +70,13 @@ # optimize the store optimise.automatic = true; + # auto garbage collect old generations + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + # enable flakes! settings.experimental-features = [ "nix-command"