nixos/documentation: Fix disabledModules being rendered
Previously disabledModules would not be disabled for the manual
This commit is contained in:
parent
de5f73d434
commit
7167985e34
1 changed files with 5 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue