nixos/documentation: Fix disabledModules being rendered

Previously disabledModules would not be disabled for the manual
This commit is contained in:
Silvan Mosberger 2020-01-03 02:54:05 +01:00
parent de5f73d434
commit 7167985e34
No known key found for this signature in database
GPG key ID: E8F1E9EAD284E17D

View file

@ -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: