From 86c3c43a81747ec5a122d7d10b4088d65793c9f2 Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Sat, 15 Oct 2022 18:25:25 +1000
Subject: [PATCH] buildkite: remove

---
 README.md                 |  1 -
 build03/configuration.nix |  1 -
 roles/buildkite.nix       | 13 -------------
 3 files changed, 15 deletions(-)
 delete mode 100644 roles/buildkite.nix

diff --git a/README.md b/README.md
index 114d001..a5848b8 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,6 @@ As PRs from forks don't have automatic CI checks, admins can test PRs by posting
 
 ## Services
 
-* Buildkite agent - on build03
 * https://search.nix-community.org (hound) - on build03
 * https://hydra.nix-community.org - on build03
 * matterbridge - on build03
diff --git a/build03/configuration.nix b/build03/configuration.nix
index 7838136..47f4fbc 100644
--- a/build03/configuration.nix
+++ b/build03/configuration.nix
@@ -10,7 +10,6 @@
   # $ zpool import -f zroot && mount -t zfs zroot/root/nixos /mnt && mount -t zfs zroot/root/home /mnt/home && mount /dev/md[0-9]* /mnt/boot
   # $ nixos-enter
   imports = [
-    ../roles/buildkite.nix
     ../roles/common.nix
     ../roles/hardware/hetzner-amd.nix
     ../roles/hercules-ci
diff --git a/roles/buildkite.nix b/roles/buildkite.nix
deleted file mode 100644
index d467a30..0000000
--- a/roles/buildkite.nix
+++ /dev/null
@@ -1,13 +0,0 @@
-{ pkgs, config, ... }:
-
-{
-  sops.secrets.buildkite-token.owner = "buildkite-agent-ci";
-  sops.secrets.buildkite-agent-key.owner = "buildkite-agent-ci";
-  sops.secrets.github-nixpkgs-swh-key.owner = "buildkite-agent-ci";
-
-  services.buildkite-agents.ci = {
-    enable = true;
-    tokenPath = config.sops.secrets.buildkite-token.path;
-    privateSshKeyPath = config.sops.secrets.buildkite-agent-key.path;
-  };
-}