nixos/buildkite-agent: add extraConfig option

This is useful for things like enabling debugging and increasing agent
priority, which don't warrant extra module options.
This commit is contained in:
Rodney Lorrimar 2018-02-18 16:19:26 +00:00
parent 327a84749e
commit efefba7c9b
No known key found for this signature in database
GPG Key ID: E8E4A1E57778A1B6

View File

@ -65,6 +65,15 @@ in
'';
};
extraConfig = mkOption {
type = types.lines;
default = "";
example = "debug=true";
description = ''
Extra lines to be added verbatim to the configuration file.
'';
};
openssh =
{ privateKeyPath = mkOption {
type = types.path;
@ -126,6 +135,7 @@ in
build-path="${cfg.dataDir}/builds"
hooks-path="${cfg.hooksPath}"
bootstrap-script="${pkgs.buildkite-agent}/share/bootstrap.sh"
${cfg.extraConfig}
EOF
'';