about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-02T22·46-0400
committerglittershark <grfn@gws.fyi>2020-07-02T23·19+0000
commitae5c5b88e5cc894303b7f1552101be0299c361f0 (patch)
treef586863cd2172f09e727253d438099790b12696f
parent479d5ee8f1bee10b2073e323d8971ccec9d94f02 (diff)
feat(gs/system): Configure whitby as a remote builder r/1178
This isn't working, but someday it might

Change-Id: Iac20c05b033df3484a7c6908473601bb17c9fcfe
Reviewed-on: https://cl.tvl.fyi/c/depot/+/883
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
Reviewed-by: BuildkiteCI
-rw-r--r--users/glittershark/system/system/modules/tvl.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/users/glittershark/system/system/modules/tvl.nix b/users/glittershark/system/system/modules/tvl.nix
new file mode 100644
index 000000000000..5fb044b90140
--- /dev/null
+++ b/users/glittershark/system/system/modules/tvl.nix
@@ -0,0 +1,19 @@
+{ config, lib, pkgs, ... }:
+
+{
+  nix.buildMachines = [{
+    hostName = "whitby.tvl.fyi";
+    sshUser = "grfn";
+    sshKey = "/root/.ssh/id_rsa.whitby";
+    system = "x86_64-linux";
+    maxJobs = 64;
+    supportedFeatures = ["big-parallel"];
+  }];
+
+  programs.ssh.knownHosts.whitby = {
+    hostNames = [ "whitby" "whitby.tvl.fyi" "49.12.129.211"];
+    publicKeyFile = pkgs.writeText "whitby.pub" ''
+    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILNh/w4BSKov0jdz3gKBc98tpoLta5bb87fQXWBhAl2I
+    '';
+  };
+}