From 4acd8fc50d8015182c94d39c796e1bba6828d387 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 4 Oct 2023 00:12:25 -0600 Subject: [PATCH] [NixOS] Add nixConfig that tries to use ryzen-shine as extra binary cache --- nixos/flake.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nixos/flake.nix b/nixos/flake.nix index 304c8537..d8130b82 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -161,6 +161,21 @@ }); in { + nixConfig = { + substituters = [ + "https://cache.nixos.org/" + ]; + trusted-public-keys = [ + "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" + ]; + extra-substituters = [ + "http://1896Folsom.duckdns.org" + "http://192.168.1.26:5050" + ]; + extra-trusted-public-keys = [ + "1896Folsom.duckdns.org:U2FTjvP95qwAJo0oGpvmUChJCgi5zQoG1YisoI08Qoo=" + ]; + }; nixosConfigurations = builtins.mapAttrs (machineName: params: let machineParams = if builtins.hasAttr machineName customParams