forked from DGNum/colmena
eval.nix: Suppress _module.args docs
This commit is contained in:
parent
838a200854
commit
429a0f5aa1
1 changed files with 11 additions and 4 deletions
|
@ -135,8 +135,7 @@ let
|
|||
in evalConfig {
|
||||
inherit (npkgs) system;
|
||||
|
||||
modules = let
|
||||
in [
|
||||
modules = [
|
||||
nixpkgsModule
|
||||
colmenaModules.assertionModule
|
||||
colmenaModules.keyChownModule
|
||||
|
@ -191,6 +190,14 @@ let
|
|||
inherit nixpkgs lib;
|
||||
nodes = uncheckedNodes;
|
||||
};
|
||||
|
||||
suppressModuleArgsDocs = { lib, ... }: {
|
||||
options = {
|
||||
_module.args = lib.mkOption {
|
||||
internal = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
inherit
|
||||
nodes toplevel
|
||||
|
@ -204,7 +211,7 @@ in {
|
|||
docs = {
|
||||
deploymentOptions = pkgs: let
|
||||
eval = pkgs.lib.evalModules {
|
||||
modules = [ colmenaOptions.deploymentOptions ];
|
||||
modules = [ colmenaOptions.deploymentOptions suppressModuleArgsDocs ];
|
||||
specialArgs = {
|
||||
name = "nixos";
|
||||
nodes = {};
|
||||
|
@ -214,7 +221,7 @@ in {
|
|||
|
||||
metaOptions = pkgs: let
|
||||
eval = pkgs.lib.evalModules {
|
||||
modules = [ colmenaOptions.metaOptions ];
|
||||
modules = [ colmenaOptions.metaOptions suppressModuleArgsDocs ];
|
||||
};
|
||||
in eval.options;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue