Commit d4a84aee authored by Robert Hensing's avatar Robert Hensing
Browse files

lib/types: Use map instead of imap1 in submoduleWith

parent 907627f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 ]; }