Skip to content

Commit

Permalink
lib: ensure path type in mkProfileAttrs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
David Arnold authored and David Arnold committed Mar 19, 2021
1 parent 2961c1e commit db716d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devos/mkProfileAttrs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let mkProfileAttrs =
f = n: _:
lib.optionalAttrs
(lib.pathExists "${dir}/${n}/default.nix")
{ default = "${dir}/${n}"; }
{ default = /. + "${dir}/${n}"; }
// mkProfileAttrs "${dir}/${n}";
in
lib.mapAttrs f imports;
Expand Down

0 comments on commit db716d1

Please sign in to comment.