arion/docs/options.nix
2019-10-25 00:32:59 +02:00

16 lines
324 B
Nix

{ pkgs ? import ../nix {} }:
let
eval = import (pkgs.path + "/nixos/lib/eval-config.nix") {
baseModules = import ../src/nix/modules.nix;
modules = [];
};
options = pkgs.nixosOptionsDoc {
options = eval.options;
};
in pkgs.writeText "agent-options" ''
= Arion options
${options.optionsAsciiDoc}
''