create documentation rendering derivation

This commit is contained in:
xenia 2024-04-09 17:24:56 -04:00
parent 90ec5218f2
commit ea4e69511f
2 changed files with 15 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/result

14
support/render-doc.nix Normal file
View File

@ -0,0 +1,14 @@
{ pkgs ? import <nixpkgs> {} }:
let
eval = import (pkgs.path + "/nixos/lib/eval-config.nix") {
# baseModules = [];
modules = [
./.
];
};
doc = pkgs.nixosOptionsDoc {
options.services.ghidra-server = eval.options.services.ghidra-server;
};
in
doc.optionsCommonMark