diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-01-03 02:54:05 +0100 |
---|---|---|
committer | Silvan Mosberger <contact@infinisil.com> | 2020-01-09 17:26:08 +0100 |
commit | 7167985e34d21fd43df6c87ae70356ca654a1003 (patch) | |
tree | 958ae0ef15a6d80893446d5f009fa2ca2ebee310 /nixos/modules/misc | |
parent | de5f73d434dda62048f67282804e9f417bb893d1 (diff) |
nixos/documentation: Fix disabledModules being rendered
Previously disabledModules would not be disabled for the manual
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r-- | nixos/modules/misc/documentation.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nixos/modules/misc/documentation.nix b/nixos/modules/misc/documentation.nix index 820553270e3b..d09afadd6097 100644 --- a/nixos/modules/misc/documentation.nix +++ b/nixos/modules/misc/documentation.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, baseModules, extraModules, modules, ... }: +{ config, lib, pkgs, baseModules, extraModules, modules, modulesPath, ... }: with lib; @@ -22,7 +22,10 @@ let scrubbedEval = evalModules { modules = [ { nixpkgs.localSystem = config.nixpkgs.localSystem; } ] ++ manualModules; args = (config._module.args) // { modules = [ ]; }; - specialArgs = { pkgs = scrubDerivations "pkgs" pkgs; }; + specialArgs = { + pkgs = scrubDerivations "pkgs" pkgs; + inherit modulesPath; + }; }; scrubDerivations = namePrefix: pkgSet: mapAttrs (name: value: |