diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-07-12 14:33:52 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-07-21 15:31:35 +0200 |
commit | e135c417bbaaaf29184004b132c74ae120ea17e8 (patch) | |
tree | 6ace76c866de6c8f20106f443e28e03b8316b36b /nixos | |
parent | bf5b75864dbce1e072ac1c1816f6bda97c096e46 (diff) |
nixos/documentation: Forward the specialArgs
This is necessary when generating the complete documenation for configurations that import modules from the module arguments.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/misc/documentation.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/misc/documentation.nix b/nixos/modules/misc/documentation.nix index b031ff2f2be29..0f82fa0472a1f 100644 --- a/nixos/modules/misc/documentation.nix +++ b/nixos/modules/misc/documentation.nix @@ -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 |