Netconf-Module/doc-maker.nix
2024-12-09 17:38:39 +01:00

15 lines
278 B
Nix

{
lib,
runCommand,
nixosOptionsDoc,
...
}:
let
eval = lib.evalModules { modules = [ ./junos ./dgn-module.nix ]; };
optionsDoc = nixosOptionsDoc {
inherit (eval) options;
};
in
runCommand "options-doc.md" { } ''
cat ${optionsDoc.optionsCommonMark} >> $out
''