nixos/documentation: Forward the specialArgs

This is necessary when generating the complete documenation for
configurations that import modules from the module arguments.
This commit is contained in:
Robert Hensing 2022-07-12 14:33:52 +02:00
parent bf5b75864d
commit e135c417bb

View File

@ -1,4 +1,4 @@
{ config, options, lib, pkgs, utils, modules, baseModules, extraModules, modulesPath, ... }:
{ config, options, lib, pkgs, utils, modules, baseModules, extraModules, modulesPath, specialArgs, ... }:
with lib;
@ -41,7 +41,7 @@ let
modules = [ {
_module.check = false;
} ] ++ docModules.eager;
specialArgs = {
specialArgs = specialArgs // {
pkgs = scrubDerivations "pkgs" pkgs;
# allow access to arbitrary options for eager modules, eg for getting
# option types from lazy modules