File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2222
2323let
2424 cfg = config . nix-settings ;
25-
2625 hasFull = cfg . use == "full" ;
2726 isFull = lib . optionals hasFull ;
27+ flakeInputs = lib . attrsets . filterAttrs ( _ : lib . isType "flake" ) inputs ;
2828in
2929{
3030 options . nix-settings = {
6262 config = lib . mkIf cfg . enable {
6363 nix =
6464 rec {
65- nixPath = [ "nixpkgs=${ inputs . nixpkgs } " ] ;
65+ nixPath =
66+ [
67+ "nixpkgs=${ inputs . nixpkgs } "
68+ ]
69+ ++ lib . optionals cfg . inputs-to-registry (
70+ lib . mapAttrsToList ( name : flake : "${ name } =${ flake } " ) flakeInputs
71+ ) ;
6672
6773 registry =
6874 {
7177 // lib . optionalAttrs cfg . inputs-to-registry (
7278 lib . attrsets . concatMapAttrs ( name : flake : {
7379 ${ name } = { inherit flake ; } ;
74- } ) ( lib . attrsets . filterAttrs ( _ : lib . isType "flake" ) inputs )
80+ } ) flakeInputs
7581 ) ;
7682
7783 settings =
You can’t perform that action at this time.
0 commit comments