summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock17
-rw-r--r--flake.nix6
-rw-r--r--system-profiles/core.nix2
3 files changed, 25 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
index 770ed9f1..b977d5cb 100644
--- a/flake.lock
+++ b/flake.lock
@@ -129,6 +129,22 @@
129 "type": "github" 129 "type": "github"
130 } 130 }
131 }, 131 },
132 "flake-registry": {
133 "flake": false,
134 "locked": {
135 "lastModified": 1674218164,
136 "narHash": "sha256-oLNWhwrV252kiy2tGQwwJNKFR+iG0fjsw0GSE/XVTR8=",
137 "owner": "NixOS",
138 "repo": "flake-registry",
139 "rev": "507c028d8d189b6647592dfd10ee677578de45a1",
140 "type": "github"
141 },
142 "original": {
143 "owner": "NixOS",
144 "repo": "flake-registry",
145 "type": "github"
146 }
147 },
132 "flake-utils": { 148 "flake-utils": {
133 "locked": { 149 "locked": {
134 "lastModified": 1667395993, 150 "lastModified": 1667395993,
@@ -420,6 +436,7 @@
420 "ca-util": "ca-util", 436 "ca-util": "ca-util",
421 "deploy-rs": "deploy-rs", 437 "deploy-rs": "deploy-rs",
422 "flake-compat": "flake-compat_2", 438 "flake-compat": "flake-compat_2",
439 "flake-registry": "flake-registry",
423 "flake-utils": "flake-utils_2", 440 "flake-utils": "flake-utils_2",
424 "home-manager": "home-manager", 441 "home-manager": "home-manager",
425 "mach-nix": "mach-nix", 442 "mach-nix": "mach-nix",
diff --git a/flake.nix b/flake.nix
index 4b8d3d59..fb6665ba 100644
--- a/flake.nix
+++ b/flake.nix
@@ -72,6 +72,12 @@
72 repo = "flake-utils"; 72 repo = "flake-utils";
73 ref = "main"; 73 ref = "main";
74 }; 74 };
75 flake-registry = {
76 type = "github";
77 owner = "NixOS";
78 repo = "flake-registry";
79 flake = false;
80 };
75 nix-index-database = { 81 nix-index-database = {
76 type = "github"; 82 type = "github";
77 owner = "Mic92"; 83 owner = "Mic92";
diff --git a/system-profiles/core.nix b/system-profiles/core.nix
index 40bd20c6..f6d5a21e 100644
--- a/system-profiles/core.nix
+++ b/system-profiles/core.nix
@@ -47,6 +47,8 @@ in {
47 sandbox = true; 47 sandbox = true;
48 allowed-users = [ "*" ]; 48 allowed-users = [ "*" ];
49 trusted-users = [ "root" "@wheel" ]; 49 trusted-users = [ "root" "@wheel" ];
50
51 flake-registry = "${flakeInputs.flake-registry}/flake-registry.json";
50 }; 52 };
51 extraOptions = '' 53 extraOptions = ''
52 experimental-features = nix-command flakes 54 experimental-features = nix-command flakes