lib: ensure path type in mkProfileAttrs
This is required so that filtering via lib.remove works against modules.core and similar which are of path type. It is also a prerequisite for disabledModules to match by module.key instead of path string relative to nixpkgs' modulePath.
This commit is contained in:
parent
2961c1ea52
commit
db716d1921
|
@ -27,7 +27,7 @@ let mkProfileAttrs =
|
||||||
f = n: _:
|
f = n: _:
|
||||||
lib.optionalAttrs
|
lib.optionalAttrs
|
||||||
(lib.pathExists "${dir}/${n}/default.nix")
|
(lib.pathExists "${dir}/${n}/default.nix")
|
||||||
{ default = "${dir}/${n}"; }
|
{ default = /. + "${dir}/${n}"; }
|
||||||
// mkProfileAttrs "${dir}/${n}";
|
// mkProfileAttrs "${dir}/${n}";
|
||||||
in
|
in
|
||||||
lib.mapAttrs f imports;
|
lib.mapAttrs f imports;
|
||||||
|
|
Loading…
Reference in a new issue