all repos — nixfiles @ dd2d25b8929750d66345641928aa10f80f40f883

System and user configuration, managed by nix and home-manager

move nix cache settings to nix.nix
Alan Pearce alan@alanpearce.eu
Sat, 18 May 2024 20:44:02 +0200
commit

dd2d25b8929750d66345641928aa10f80f40f883

parent

b25d004e9973bd32ce86bf6c1b94cba5ddfa187c

2 files changed, 13 insertions(+), 15 deletions(-)

jump to
M system/settings/configuration/nix.nixsystem/settings/configuration/nix.nix
@@ -12,6 +12,19 @@ keep-outputs = true;       keep-derivations = true;
       experimental-features = "nix-command flakes";
       warn-dirty = false;
+      substituters = [
+        "https://nix-community.cachix.org"
+        "https://deploy-rs.cachix.org"
+        "https://binarycache.alanpearce.eu"
+        "https://deploy-rs.cachix.org"
+      ];
+
+      trusted-public-keys = [
+        "deploy-rs.cachix.org-1:xfNobmiwF/vzvK1gpfediPwpdIP0rpDV2rYqx40zdSI="
+        "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
+        "deploy-rs.cachix.org-1:xfNobmiwF/vzvK1gpfediPwpdIP0rpDV2rYqx40zdSI="
+        "binarycache.alanpearce.eu:ZwqO3XMuajPictjwih8OY2+RXnOKpjZEZFHJjGSxAI4="
+      ];
     };
 
     gc = {
M system/settings/programs/base.nixsystem/settings/programs/base.nix
@@ -9,19 +9,4 @@ zstd   ] ++ (lib.optionals (stdenv.isLinux) [
     psmisc
   ]);
-  nix.settings = {
-    substituters = [
-      "https://nix-community.cachix.org"
-      "https://deploy-rs.cachix.org"
-      "https://binarycache.alanpearce.eu"
-      "https://deploy-rs.cachix.org"
-    ];
-
-    trusted-public-keys = [
-      "deploy-rs.cachix.org-1:xfNobmiwF/vzvK1gpfediPwpdIP0rpDV2rYqx40zdSI="
-      "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
-      "deploy-rs.cachix.org-1:xfNobmiwF/vzvK1gpfediPwpdIP0rpDV2rYqx40zdSI="
-      "binarycache.alanpearce.eu:ZwqO3XMuajPictjwih8OY2+RXnOKpjZEZFHJjGSxAI4="
-    ];
-  };
 }