15 lines
278 B
Nix
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
|
|
''
|