diff options
| author | Samuel Leathers <samuel.leathers@iohk.io> | 2019-10-17 14:40:49 -0400 |
|---|---|---|
| committer | Samuel Leathers <samuel.leathers@iohk.io> | 2019-10-17 14:40:49 -0400 |
| commit | c9d1defa330dfb15997b4ffaa05467c548505b0b (patch) | |
| tree | 893bdf594a7687b0ce86abb6d0eee0dc9609bd7a /modules | |
| parent | da52dc006c42e25757f7b2f4aac398cf448a389d (diff) | |
buildkite: add preCommands option
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/services/buildkite-agent.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/services/buildkite-agent.nix b/modules/services/buildkite-agent.nix index 936446d..ace89ec 100644 --- a/modules/services/buildkite-agent.nix +++ b/modules/services/buildkite-agent.nix @@ -89,6 +89,13 @@ in Extra lines to be added verbatim to the configuration file. ''; }; + services.buildkite-agent.preCommands = mkOption { + type = types.lines; + default = ""; + description = '' + Extra commands to run before starting buildkite. + ''; + }; services.buildkite-agent.openssh = { privateKeyPath = mkOption { @@ -215,6 +222,8 @@ in chmod 750 "${cfg.dataDir}" chmod 640 "${cfg.dataDir}/buildkite-agent.cfg" + ${cfg.preCommands} + exec buildkite-agent start --config "${cfg.dataDir}/buildkite-agent.cfg" ''; |
