From 8eb166a251a2ffc39b2769efea6acb8dab64ac18 Mon Sep 17 00:00:00 2001 From: Bo Jeanes Date: Fri, 19 Jul 2024 22:27:20 +1000 Subject: [PATCH] Add caching substitutors to system and to this flake specifically --- flake.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/flake.nix b/flake.nix index 61ac810..3c97a70 100644 --- a/flake.nix +++ b/flake.nix @@ -155,6 +155,13 @@ allowed-users = [ "root" myUsername "@nixbld" ]; auto-optimise-store = true; # https://daiderd.com/nix-darwin/manual/index.html#opt-nix.settings.auto-optimise-store + + substituters = [ + "https://nix-community.cachix.org" + ]; + trusted-public-keys = [ + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; }; extraOptions = '' @@ -538,4 +545,12 @@ }; } ); + nixConfig = { + extra-substituters = [ + "https://nix-community.cachix.org" + ]; + extra-trusted-public-keys = [ + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + }; }