From 3a14ffd6b5a0217be3bdfd3c05c24cc5ffcee75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 7 Feb 2026 23:40:53 +0100 Subject: [PATCH] template2: add nix cache configuration New VMs bootstrapped from template2 will now use the local nix cache during initial nixos-rebuild, speeding up bootstrap times. Co-Authored-By: Claude Opus 4.5 --- hosts/template2/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/template2/configuration.nix b/hosts/template2/configuration.nix index 9b921be..be8e80d 100644 --- a/hosts/template2/configuration.nix +++ b/hosts/template2/configuration.nix @@ -58,6 +58,14 @@ "flakes" ]; nix.settings.tarball-ttl = 0; + nix.settings.substituters = [ + "https://nix-cache.home.2rjus.net" + "https://cache.nixos.org" + ]; + nix.settings.trusted-public-keys = [ + "nix-cache.home.2rjus.net-1:2kowZOG6pvhoK4AHVO3alBlvcghH20wchzoR0V86UWI=" + "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" + ]; environment.systemPackages = with pkgs; [ age vim