From cb439311660906c33ef257115cc25b3b27c34386 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Thu, 17 Apr 2025 13:03:48 -0400 Subject: [PATCH 1/2] Configure builders-use-substitutes --- nixos/modules/base.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/base.nix b/nixos/modules/base.nix index b7788cc..a8da9b8 100644 --- a/nixos/modules/base.nix +++ b/nixos/modules/base.nix @@ -39,4 +39,6 @@ "https://nix-community.cachix.org" ]; }; + # Remote builds should use subsitutors + nix.extraOptions = "builders-use-substitutes = true"; } From cf5c5bd0fd51a132a1af3e6b2260760ec936bac9 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Thu, 17 Apr 2025 13:11:49 -0400 Subject: [PATCH 2/2] Garbage collect driftwood --- nixos/machines/driftwood/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/machines/driftwood/configuration.nix b/nixos/machines/driftwood/configuration.nix index 0b479ad..6df213e 100644 --- a/nixos/machines/driftwood/configuration.nix +++ b/nixos/machines/driftwood/configuration.nix @@ -77,4 +77,11 @@ upper = "05:00"; }; }; + + # Setup garbage collection, keep the past month + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; }