mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-15 17:51:01 +00:00
documentation: use eval-config.nix
Avoid letting the module evaluation for the documentation drift out of sync with how system configurations are evaluated.
This commit is contained in:
parent
61662a63bf
commit
0d3ad9e7ff
1 changed files with 5 additions and 4 deletions
|
@ -11,9 +11,9 @@ let
|
||||||
regularConfig = config;
|
regularConfig = config;
|
||||||
|
|
||||||
argsModule = {
|
argsModule = {
|
||||||
config._module.args = regularConfig._module.args // {
|
config._module.args = lib.mkForce (regularConfig._module.args // {
|
||||||
modules = [ ];
|
modules = [ ];
|
||||||
};
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/* For the purpose of generating docs, evaluate options with each derivation
|
/* For the purpose of generating docs, evaluate options with each derivation
|
||||||
|
@ -28,8 +28,9 @@ let
|
||||||
inherit (config.system) nixpkgsRevision;
|
inherit (config.system) nixpkgsRevision;
|
||||||
options =
|
options =
|
||||||
let
|
let
|
||||||
scrubbedEval = evalModules {
|
scrubbedEval = import ../../eval-config.nix {
|
||||||
modules = baseModules ++ [ argsModule ];
|
inherit lib;
|
||||||
|
modules = [ argsModule ];
|
||||||
specialArgs = { pkgs = scrubDerivations "pkgs" pkgs; };
|
specialArgs = { pkgs = scrubDerivations "pkgs" pkgs; };
|
||||||
};
|
};
|
||||||
scrubDerivations = namePrefix: pkgSet: mapAttrs
|
scrubDerivations = namePrefix: pkgSet: mapAttrs
|
||||||
|
|
Loading…
Reference in a new issue