2019-10-24 19:36:58 +02:00
|
|
|
{ pkgs ? import ../nix {} }:
|
|
|
|
|
|
|
|
let
|
2019-10-25 00:54:40 +02:00
|
|
|
eval = pkgs.lib.evalModules {
|
|
|
|
modules = import ../src/nix/modules.nix;
|
2019-10-24 19:36:58 +02:00
|
|
|
};
|
|
|
|
options = pkgs.nixosOptionsDoc {
|
|
|
|
options = eval.options;
|
|
|
|
};
|
|
|
|
|
2019-10-27 11:42:40 +01:00
|
|
|
in (pkgs.writeText "agent-options" ''
|
2019-10-24 19:36:58 +02:00
|
|
|
= Arion options
|
|
|
|
|
|
|
|
${options.optionsAsciiDoc}
|
2019-10-27 11:42:40 +01:00
|
|
|
'').overrideAttrs (o: {
|
|
|
|
# Work around https://github.com/hercules-ci/hercules-ci-agent/issues/168
|
|
|
|
allowSubstitutes = true;
|
|
|
|
})
|