diff options
| -rw-r--r-- | flake.lock | 17 | ||||
| -rw-r--r-- | flake.nix | 5 | ||||
| -rw-r--r-- | modules/nix/default.nix | 8 |
3 files changed, 29 insertions, 1 deletions
@@ -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", @@ -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" |