{ 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 ''