From 06f2309e9f94d4679c8225948aedea14ec7e0906 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 28 Oct 2024 16:13:34 -0500 Subject: [PATCH] feat(hosts/orion): use cachix substituters --- hosts/orion/modules/nix.nix | 9 ++++++++- users/price/conf/nix/default.nix | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/hosts/orion/modules/nix.nix b/hosts/orion/modules/nix.nix index 83704218..fa1e3c15 100644 --- a/hosts/orion/modules/nix.nix +++ b/hosts/orion/modules/nix.nix @@ -13,6 +13,13 @@ auto-optimise-store = true; use-xdg-base-directories = true; trusted-users = [ "@wheel" ]; + substituters = [ + "https://nix-community.cachix.org" + "https://cache.nixos.org" + ]; + trusted-public-keys = [ + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; }; gc = { automatic = true; @@ -20,4 +27,4 @@ options = "--delete-older-than 7d"; }; }; -} +} \ No newline at end of file diff --git a/users/price/conf/nix/default.nix b/users/price/conf/nix/default.nix index 59d246ec..0e8e0722 100644 --- a/users/price/conf/nix/default.nix +++ b/users/price/conf/nix/default.nix @@ -10,6 +10,13 @@ "nix-command" "flakes" ]; + substituters = [ + "https://nix-community.cachix.org" + "https://cache.nixos.org" + ]; + trusted-public-keys = [ + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; auto-optimise-store = true; use-xdg-base-directories = true; trusted-users = [ "@wheel" ];