mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
lib/types: Use map instead of imap1 in submoduleWith
This commit is contained in:
parent
907627f656
commit
d4a84aeeca
@ -580,7 +580,7 @@ rec {
|
||||
let
|
||||
inherit (lib.modules) evalModules;
|
||||
|
||||
allModules = defs: imap1 (n: { value, file }:
|
||||
allModules = defs: map ({ value, file }:
|
||||
if isAttrs value && shorthandOnlyDefinesConfig
|
||||
then { _file = file; config = value; }
|
||||
else { _file = file; imports = [ value ]; }
|
||||
|
Loading…
Reference in New Issue
Block a user