From 2b14d6d4f414b5692fa29685934096536e0a7e19 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 21 Mar 2023 13:33:09 +0100 Subject: flake-registry --- flake.lock | 17 +++++++++++++++++ flake.nix | 6 ++++++ system-profiles/core.nix | 2 ++ 3 files changed, 25 insertions(+) diff --git a/flake.lock b/flake.lock index 770ed9f1..b977d5cb 100644 --- a/flake.lock +++ b/flake.lock @@ -129,6 +129,22 @@ "type": "github" } }, + "flake-registry": { + "flake": false, + "locked": { + "lastModified": 1674218164, + "narHash": "sha256-oLNWhwrV252kiy2tGQwwJNKFR+iG0fjsw0GSE/XVTR8=", + "owner": "NixOS", + "repo": "flake-registry", + "rev": "507c028d8d189b6647592dfd10ee677578de45a1", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "flake-registry", + "type": "github" + } + }, "flake-utils": { "locked": { "lastModified": 1667395993, @@ -420,6 +436,7 @@ "ca-util": "ca-util", "deploy-rs": "deploy-rs", "flake-compat": "flake-compat_2", + "flake-registry": "flake-registry", "flake-utils": "flake-utils_2", "home-manager": "home-manager", "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 @@ repo = "flake-utils"; ref = "main"; }; + flake-registry = { + type = "github"; + owner = "NixOS"; + repo = "flake-registry"; + flake = false; + }; nix-index-database = { type = "github"; 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 { sandbox = true; allowed-users = [ "*" ]; trusted-users = [ "root" "@wheel" ]; + + flake-registry = "${flakeInputs.flake-registry}/flake-registry.json"; }; extraOptions = '' experimental-features = nix-command flakes -- cgit v1.2.3