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