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 | |
| parent | 8f0e02cfc869fb238d534aeebe4f494e4ead7ce5 (diff) | |
Revert "eval-config: set `class`"
| -rw-r--r-- | eval-config.nix | 1 | ||||
| -rw-r--r-- | modules/documentation/default.nix | 9 |
2 files changed, 4 insertions, 6 deletions
diff --git a/eval-config.nix b/eval-config.nix index 57a0381..9663849 100644 --- a/eval-config.nix +++ b/eval-config.nix @@ -16,7 +16,6 @@ let }; eval = lib.evalModules (builtins.removeAttrs args [ "lib" ] // { - class = "darwin"; modules = modules ++ [ argsModule ] ++ baseModules; specialArgs = { modulesPath = builtins.toString ./modules; } // specialArgs; }); 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 |
