diff options
| -rw-r--r-- | lib/options.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix index f4d0d9d36cfc..8c9899a58e8c 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -246,7 +246,7 @@ rec { mergeDefaultOption = loc: defs: let list = getValues defs; in if length list == 1 then head list - else if all isFunction list then x: mergeDefaultOption loc (map (f: f x) list) + else if all isFunction list then x: mergeDefaultOption loc (map (def: def // { value = def.value x; }) defs) else if all isList list then concatLists list else if all isAttrs list then foldl' lib.mergeAttrs {} list else if all isBool list then foldl' lib.or false list |
