From 799794ebe50a98afb6aeb66bb2d0db4167f5f363 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Thu, 23 Jan 2025 19:07:06 -0500 Subject: [PATCH] added nix setting to nix_builder containers --- systems/jeeves/nix_builder.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/systems/jeeves/nix_builder.nix b/systems/jeeves/nix_builder.nix index 983ce2b..150f4c3 100644 --- a/systems/jeeves/nix_builder.nix +++ b/systems/jeeves/nix_builder.nix @@ -26,6 +26,27 @@ in "ssh-keys".mountPoint = "${vars.storage_secrets}/services/github-runners/id_ed25519_github-runners"; }; config = { config, pkgs, lib, ... }: { + nix.settings = { + trusted-substituters = [ + "https://cache.nixos.org" + "https://cache.tmmworkshop.com" + "https://nix-community.cachix.org" + ]; + substituters = [ + "https://cache.nixos.org/?priority=2&want-mass-query=true" + "https://cache.tmmworkshop.com/?priority=2&want-mass-query=true" + "https://nix-community.cachix.org/?priority=10&want-mass-query=true" + ]; + trusted-public-keys = [ + "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" + "cache.tmmworkshop.com:jHffkpgbmEdstQPoihJPYW9TQe6jnQbWR2LqkNGV3iA=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + experimental-features = [ + "flakes" + "nix-command" + ]; + }; programs.ssh.extraConfig = '' Host jeeves Port 629