diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-06-14 17:09:05 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-06-14 17:09:05 +0200 |
commit | d4a84aeecaa765022a03c3ec03d214b93f46e804 (patch) | |
tree | 172e3099bb8402f60e0e74bdf3572ca00b3e0ed1 /lib/types.nix | |
parent | 907627f6563546c6304703cab94b8cc60b06a12d (diff) |
lib/types: Use map instead of imap1 in submoduleWith
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix index 977dd313cf86d..4af75a3d6423b 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 ]; } |