diff --git a/flake.lock b/flake.lock index 5661ed9..6f734ef 100644 --- a/flake.lock +++ b/flake.lock @@ -179,11 +179,11 @@ ] }, "locked": { - "lastModified": 1732383377, - "narHash": "sha256-FnTC1Eycct/oD1I0ZUuy9FmQFfBeuymbVD2ptlQWaGc=", + "lastModified": 1732420764, + "narHash": "sha256-u6JOOVlnGe8fMekW0BgaHuuZwbJp4ixQaMA5BEvRoDA=", "owner": "nix-community", "repo": "home-manager", - "rev": "16fe78182e924c9a2b0cffa1f343efea80945ef2", + "rev": "67cd4814a247fd0fe97171acb90659f7e304bcb8", "type": "github" }, "original": { @@ -263,11 +263,11 @@ }, "nur": { "locked": { - "lastModified": 1732387718, - "narHash": "sha256-qgOyvB5g41QCefVlK/6WjymS3D08+c+VekPsXL+VWi0=", + "lastModified": 1732445289, + "narHash": "sha256-I11rJ+2M9kO6mWsMPhEEGQlg/1u9cCCjoY/9pTAKpOg=", "owner": "nix-community", "repo": "NUR", - "rev": "32a091f99d7422427f383de2b3b699dfef718d41", + "rev": "79c7e2e562346749551db0d1350d49c74721216a", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index dd64054..fded7e5 100644 --- a/flake.nix +++ b/flake.nix @@ -139,6 +139,7 @@ useGlobalPkgs = true; useUserPackages = true; verbose = true; + extraSpecialArgs = { inputs = self.inputs; }; users = { root = import ./users/root/b4d14.nix; badele = { @@ -166,6 +167,7 @@ useGlobalPkgs = true; useUserPackages = true; verbose = true; + extraSpecialArgs = { inputs = self.inputs; }; users = { root = import ./users/root/badxps.nix; badele = { diff --git a/nix/home-manager/features/term/base.nix b/nix/home-manager/features/term/base.nix index 48cc890..1b0e3d9 100644 --- a/nix/home-manager/features/term/base.nix +++ b/nix/home-manager/features/term/base.nix @@ -1,4 +1,4 @@ -{ config, inputs, lib, outputs, pkgs, ... }: { +{ config, inputs, lib, pkgs, ... }: { imports = [ # Hardware informations @@ -25,6 +25,13 @@ }; nix = { + # Add all flake inputs to registry / CMD: nix registry list + registry = lib.mapAttrs (_: value: { flake = value; }) inputs; + # Add all flake inputs to legacy / CMD: echo $NIX_PATH | tr ":" "\n" + + nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") + config.nix.registry; + package = lib.mkForce pkgs.nix; settings = { experimental-features = [ "nix-command" "flakes" ];