Skip to content

Commit

Permalink
lib/modules.nix: Apply argument module of old f
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jul 11, 2023
1 parent eb410ea commit fb988c6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,9 @@ let
''
else
mapAttrs
(n: (module: option:
[{ inherit (module) _file; options = option; }]
) module)
(n: option:
[{ inherit (module) _file; options = option; }]
)
subtree
) options);
# an attrset 'name' => list of submodules that define ‘name’.
Expand All @@ -572,9 +572,9 @@ let
''
else
mapAttrs
(n: (module: value:
map (config: { inherit (module) file; inherit config; }) (pushDownProperties value)
) module)
(n: value:
map (config: { inherit (module) file; inherit config; }) (pushDownProperties value)
)
subtree
) configs);
# extract the definitions for each loc
Expand All @@ -593,9 +593,9 @@ let
''
else
mapAttrs
(n: (module: value:
[{ inherit (module) file; inherit value; }]
) module)
(n: value:
[{ inherit (module) file; inherit value; }]
)
subtree
) configs);

Expand Down

0 comments on commit fb988c6

Please sign in to comment.