diff options
| author | Emily <github@emily.moe> | 2023-07-24 23:24:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-24 23:24:20 +0100 |
| commit | a5b09580e2d0bbc52b338afe4f1f1d46178e6bbf (patch) | |
| tree | 7b2ec5e8074354db00ea426f270985d9ab1fec43 /modules/documentation/default.nix | |
| parent | 8f0e02cfc869fb238d534aeebe4f494e4ead7ce5 (diff) | |
Revert "eval-config: set `class`"
Diffstat (limited to 'modules/documentation/default.nix')
| -rw-r--r-- | modules/documentation/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/documentation/default.nix b/modules/documentation/default.nix index 49bba72..2f3bb9a 100644 --- a/modules/documentation/default.nix +++ b/modules/documentation/default.nix @@ -11,9 +11,9 @@ let regularConfig = config; argsModule = { - config._module.args = lib.mkForce (regularConfig._module.args // { + config._module.args = regularConfig._module.args // { modules = [ ]; - }); + }; }; /* For the purpose of generating docs, evaluate options with each derivation @@ -28,9 +28,8 @@ let inherit (config.system) nixpkgsRevision; options = let - scrubbedEval = import ../../eval-config.nix { - inherit lib; - modules = [ argsModule ]; + scrubbedEval = evalModules { + modules = baseModules ++ [ argsModule ]; specialArgs = { pkgs = scrubDerivations "pkgs" pkgs; }; }; scrubDerivations = namePrefix: pkgSet: mapAttrs |
