diff --git a/lib/modules.nix b/lib/modules.nix index d515ee24d16e..cc38e4cba87a 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -127,7 +127,7 @@ rec { let collected = collectModules (specialArgs.modulesPath or "") (modules ++ [ internalModule ]) - ({ inherit lib options config; } // specialArgs); + ({ inherit lib options config specialArgs; } // specialArgs); in mergeModules prefix (reverseList collected); options = merged.matchedOptions;