1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

lib/modules.nix: Apply argument module of old f

This commit is contained in:
Robert Hensing 2023-07-11 11:50:03 +02:00
parent eb410eab82
commit fb988c6193

View file

@ -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.
@ -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
@ -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);