From 3fdd5dd3a928d182ba9c7a8b24cc1b52bb214b51 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 17 Sep 2024 00:56:10 -0700 Subject: nix: flake-registry --- flake.lock | 17 +++++++++++++++++ flake.nix | 5 +++++ modules/nix/default.nix | 8 +++++++- 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 4315762..d5b518f 100644 --- a/flake.lock +++ b/flake.lock @@ -356,6 +356,22 @@ "type": "github" } }, + "flake-registry": { + "flake": false, + "locked": { + "lastModified": 1717415742, + "narHash": "sha256-HKvoLGZUsBpjkxWkdtctGYj6RH0bl6vcw0OjTOqyzJk=", + "owner": "NixOS", + "repo": "flake-registry", + "rev": "895a65f8d5acf848136ee8fe8e8f736f0d27df96", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "flake-registry", + "type": "github" + } + }, "flake-schemas": { "locked": { "lastModified": 1721999734, @@ -1575,6 +1591,7 @@ "inputs": { "chaotic": "chaotic", "flake-parts": "flake-parts", + "flake-registry": "flake-registry", "home-manager": "home-manager_2", "hyprfocus": "hyprfocus", "hyprland": "hyprland", diff --git a/flake.nix b/flake.nix index b95c96b..6b6ecd8 100644 --- a/flake.nix +++ b/flake.nix @@ -142,5 +142,10 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.systems.follows = "systems"; }; + + flake-registry = { + url = "github:NixOS/flake-registry"; + flake = false; + }; }; } diff --git a/modules/nix/default.nix b/modules/nix/default.nix index ed94511..ccc2910 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -1,4 +1,9 @@ -{ config, lib, ... }: +{ + config, + lib, + inputs, + ... +}: { imports = [ ./nh.nix ]; @@ -27,6 +32,7 @@ use-cgroups = true; builders-use-substitutes = true; nix-path = lib.mkForce "nixpkgs=flake:nixpkgs"; + flake-registry = "${inputs.flake-registry}/flake-registry.json"; system-features = [ "nixos-test" -- cgit v1.2.3