5b5648c10e
* chore(modules): factor out option doc generation * ci: only validate sources on pushes to main
19 lines
329 B
Nix
19 lines
329 B
Nix
{ lib
|
|
, nixosOptionsDoc
|
|
,
|
|
}: { version
|
|
, modules
|
|
,
|
|
}:
|
|
let
|
|
eval = lib.evalModules {
|
|
modules = modules ++ [{ _module.check = false; }];
|
|
};
|
|
|
|
doc = nixosOptionsDoc {
|
|
options = lib.filterAttrs (n: _: n != "_module") eval.options;
|
|
documentType = "none";
|
|
revision = version;
|
|
};
|
|
in
|
|
doc.optionsCommonMark
|