nixos/buildkite-agent: actually use services.buildkite-agent.package

We were currently just using pkgs.buildkite-agent, no matter what was
configured in services.buildkite-agent.package
This commit is contained in:
Florian Klink 2020-01-17 16:28:31 +01:00
parent c154dd5101
commit 9237767277

View File

@ -223,7 +223,7 @@ in
''; '';
serviceConfig = serviceConfig =
{ ExecStart = "${cfg.buildkite-agent}/bin/buildkite-agent start --config /var/lib/buildkite-agent/buildkite-agent.cfg"; { ExecStart = "${cfg.package}/bin/buildkite-agent start --config /var/lib/buildkite-agent/buildkite-agent.cfg";
User = "buildkite-agent"; User = "buildkite-agent";
RestartSec = 5; RestartSec = 5;
Restart = "on-failure"; Restart = "on-failure";