From d4a84aeecaa765022a03c3ec03d214b93f46e804 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 14 Jun 2022 17:09:05 +0200 Subject: [PATCH] lib/types: Use map instead of imap1 in submoduleWith --- lib/types.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types.nix b/lib/types.nix index 977dd313cf86..4af75a3d6423 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -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 ]; }