From 8b23b480bf8238fa7267df26f2602b3ed94c9c89 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Tue, 10 Feb 2026 08:18:47 +0100 Subject: [PATCH] add garbage collect to darwin hosts --- hosts/darwin/system-default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/darwin/system-default.nix b/hosts/darwin/system-default.nix index aa5d12c..b42618f 100644 --- a/hosts/darwin/system-default.nix +++ b/hosts/darwin/system-default.nix @@ -7,7 +7,12 @@ nix-homebrew.darwinModules.nix-homebrew ]; - # Nix configuration + nix.gc = { + automatic = true; + interval = { Day = 1; }; + options = "--delete-older-than 30d"; + }; + nix.settings.experimental-features = "nix-command flakes"; nix.settings.substituters = [ "https://cache.nixos.org/"