diff --git a/lib/modules.nix b/lib/modules.nix index cf44e3c66854..00d7605e9d9d 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -1038,7 +1038,7 @@ let : 2\. Function argument */ mergeOptionDecls = - loc: opts: + loc: foldl' ( res: opt: @@ -1103,8 +1103,7 @@ let declarations = [ ]; declarationPositions = [ ]; options = [ ]; - } - opts; + }; /** Merge all the definitions of an option to produce the final