about summary refs log tree commit diff
path: root/modules/system
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-01-03 17:05:37 -0800
committerFranck Cuny <franck@fcuny.net>2023-01-03 17:05:37 -0800
commit680c71f0dfc29355e2b80ca44d59d5e10949d439 (patch)
tree07a832aa8b3015c1181c53deefb110639cd59b97 /modules/system
parentfeat(modules/nix): add binary caches (diff)
downloadworld-680c71f0dfc29355e2b80ca44d59d5e10949d439.tar.gz
feat: update to nix 22.11
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/nix/default.nix23
1 files changed, 12 insertions, 11 deletions
diff --git a/modules/system/nix/default.nix b/modules/system/nix/default.nix
index ad6bb8d..01df04b 100644
--- a/modules/system/nix/default.nix
+++ b/modules/system/nix/default.nix
@@ -5,18 +5,19 @@
     extraOptions = ''
       experimental-features = nix-command flakes
     '';
-    autoOptimiseStore = true;
-    trustedUsers = [ "root" "@wheel" ];
 
-    binaryCaches = [
-      "https://cachix.cachix.org"
-      "https://nix-community.cachix.org"
-    ];
-
-    binaryCachePublicKeys = [
-      "cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM="
-      "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
-    ];
+    settings = {
+      trusted-users = [ "root" "@wheel" ];
+      auto-optimise-store = true;
+      substituters = [
+        "https://cachix.cachix.org"
+        "https://nix-community.cachix.org"
+      ];
+      trusted-public-keys = [
+        "cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM="
+        "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
+      ];
+    };
 
     gc = {
       automatic = true;