Skip to content

Commit

Permalink
lib/modules.nix: Rename defnsByName -> pushedDownDefinitionsByName
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jul 11, 2023
1 parent 448b153 commit c28dd7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ let
subtree
) options);
# an attrset 'name' => list of submodules that define ‘name’.
defnsByName =
pushedDownDefinitionsByName =
zipAttrsWith (n: concatLists)
(map (module: let subtree = module.config; in
if !(builtins.isAttrs subtree) then
Expand Down Expand Up @@ -619,7 +619,7 @@ let
# We're descending into attribute ‘name’.
let
loc = prefix ++ [name];
defns = defnsByName.${name} or [];
defns = pushedDownDefinitionsByName.${name} or [];
defns' = rawDefinitionsByName.${name} or [];
optionDecls = filter (m: isOption m.options) decls;
in
Expand Down

0 comments on commit c28dd7d

Please sign in to comment.