summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock17
-rw-r--r--flake.nix5
-rw-r--r--modules/nix/default.nix8
3 files changed, 29 insertions, 1 deletions
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"