mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
lib/modules.nix: Apply argument module
of old f
This commit is contained in:
parent
eb410eab82
commit
fb988c6193
@ -551,9 +551,9 @@ let
|
|||||||
''
|
''
|
||||||
else
|
else
|
||||||
mapAttrs
|
mapAttrs
|
||||||
(n: (module: option:
|
(n: option:
|
||||||
[{ inherit (module) _file; options = option; }]
|
[{ inherit (module) _file; options = option; }]
|
||||||
) module)
|
)
|
||||||
subtree
|
subtree
|
||||||
) options);
|
) options);
|
||||||
# an attrset 'name' => list of submodules that define ‘name’.
|
# an attrset 'name' => list of submodules that define ‘name’.
|
||||||
@ -572,9 +572,9 @@ let
|
|||||||
''
|
''
|
||||||
else
|
else
|
||||||
mapAttrs
|
mapAttrs
|
||||||
(n: (module: value:
|
(n: value:
|
||||||
map (config: { inherit (module) file; inherit config; }) (pushDownProperties value)
|
map (config: { inherit (module) file; inherit config; }) (pushDownProperties value)
|
||||||
) module)
|
)
|
||||||
subtree
|
subtree
|
||||||
) configs);
|
) configs);
|
||||||
# extract the definitions for each loc
|
# extract the definitions for each loc
|
||||||
@ -593,9 +593,9 @@ let
|
|||||||
''
|
''
|
||||||
else
|
else
|
||||||
mapAttrs
|
mapAttrs
|
||||||
(n: (module: value:
|
(n: value:
|
||||||
[{ inherit (module) file; inherit value; }]
|
[{ inherit (module) file; inherit value; }]
|
||||||
) module)
|
)
|
||||||
subtree
|
subtree
|
||||||
) configs);
|
) configs);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user