From ae5c5b88e5cc894303b7f1552101be0299c361f0 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Thu, 2 Jul 2020 18:46:33 -0400 Subject: [PATCH] feat(gs/system): Configure whitby as a remote builder 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 Reviewed-by: BuildkiteCI --- .../system/system/modules/tvl.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 users/glittershark/system/system/modules/tvl.nix diff --git a/users/glittershark/system/system/modules/tvl.nix b/users/glittershark/system/system/modules/tvl.nix new file mode 100644 index 000000000..5fb044b90 --- /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 + ''; + }; +}