snix/users/glittershark/system/system/modules/tvl.nix
Griffin Smith 0485515a06 feat(gs/system): configure whitby as a remote builder
big cores wow

Change-Id: I0fa14834365202f1c9a8ff69243f129c8acfe13d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1168
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
2020-07-14 19:42:24 +00:00

37 lines
926 B
Nix

{ config, lib, pkgs, ... }:
{
nix = {
buildMachines = [{
hostName = "whitby.tvl.fyi";
sshUser = "grfn";
sshKey = "/root/.ssh/id_rsa";
system = "x86_64-linux";
maxJobs = 64;
supportedFeatures = ["big-parallel" "kvm" "nixos-test" "benchmark"];
}];
extraOptions = ''
builders-use-substitutes = true
'';
binaryCaches = [
"ssh://nix-ssh@whitby.tvl.fyi"
"https://cache.nixos.org"
];
trustedBinaryCaches = [
"ssh://nix-ssh@whitby.tvl.fyi"
"https://cache.nixos.org"
];
binaryCachePublicKeys = [
"cache.tvl.fyi:fd+9d1ceCPvDX/xVhcfv8nAa6njEhAGAEe+oGJDEeoc="
];
};
programs.ssh.knownHosts.whitby = {
hostNames = [ "whitby" "whitby.tvl.fyi" "49.12.129.211"];
publicKeyFile = pkgs.writeText "whitby.pub" ''
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILNh/w4BSKov0jdz3gKBc98tpoLta5bb87fQXWBhAl2I
'';
};
}