1 import ./make-test-python.nix ({ pkgs, ... }:
4 name = "buildkite-agent";
5 meta = with pkgs.lib.maintainers; {
6 maintainers = [ flokli ];
9 nodes.machine = { pkgs, ... }: {
10 services.buildkite-agents = {
12 privateSshKeyPath = (import ./ssh-keys.nix pkgs).snakeOilPrivateKey;
13 tokenPath = (pkgs.writeText "my-token" "5678");
16 tokenPath = (pkgs.writeText "my-token" "1234");
23 # we can't wait on the unit to start up, as we obviously can't connect to buildkite,
24 # but we can look whether files are set up correctly
26 machine.wait_for_file("/var/lib/buildkite-agent-one/buildkite-agent.cfg")
27 machine.wait_for_file("/var/lib/buildkite-agent-one/.ssh/id_rsa")
29 machine.wait_for_file("/var/lib/buildkite-agent-two/buildkite-agent.cfg")