diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-06-14 02:12:43 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-06-14 23:01:27 +0200 |
commit | dfd98a5da26c341cf3b7e6fe7e2dbbaeb0af519c (patch) | |
tree | f47e1a16304110699fe706dab47cd2f907568be6 /lib/types.nix | |
parent | 19a069ab8b17834da249b5ecb507c2eabe76a3e3 (diff) |
lib.deferredModule: Make it properly singular
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix index 68dfa5843dee5..354714b287333 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -549,7 +549,9 @@ rec { name = "deferredModule"; description = "module"; check = x: isAttrs x || isFunction x || path.check x; - merge = loc: defs: staticModules ++ map (def: lib.setDefaultModuleLocation "${def.file}, via option ${showOption loc}" def.value) defs; + merge = loc: defs: { + imports = staticModules ++ map (def: lib.setDefaultModuleLocation "${def.file}, via option ${showOption loc}" def.value) defs; + }; inherit (submoduleWith { modules = staticModules; }) getSubOptions getSubModules; |