From 34c516f8b1256a8e837e39fb68e607151bd75e9b Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Wed, 10 Apr 2024 20:19:33 -0400 Subject: [PATCH] added substituters and trusted-users to nix.nix --- modules/nix.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/nix.nix b/modules/nix.nix index 0dbaa8e..e42346e 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -10,6 +10,28 @@ keep-outputs = true; builders-use-substitutes = true; connect-timeout = 20; + substituters = [ + "https://cache.nixos.org/?priority=1&want-mass-query=true" + "https://attic.alicehuston.xyz/cache-nix-dot?priority=4&want-mass-query=true" + "https://cache.alicehuston.xyz/?priority=5&want-mass-query=true" + "https://nix-community.cachix.org/?priority=10&want-mass-query=true" + ]; + trusted-substituters = [ + "https://cache.nixos.org" + "https://attic.alicehuston.xyz/cache-nix-dot" + "https://cache.alicehuston.xyz" + "https://nix-community.cachix.org" + ]; + trusted-public-keys = [ + "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" + "cache.alicehuston.xyz:SJAm8HJVTWUjwcTTLAoi/5E1gUOJ0GWum2suPPv7CUo=%" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "cache-nix-dot:0hp/F6mUJXNyZeLBPNBjmyEh8gWsNVH+zkuwlWMmwXg=" + ]; + trusted-users = [ + "root" + "@wheel" + ]; }; # free up to 10 gb when only 1 gb left