Skip to content

Instantly share code, notes, and snippets.

@lovesegfault
Created June 4, 2020 21:57
Show Gist options
  • Save lovesegfault/2dff4e80676c514ea7d5d4b65d317ea1 to your computer and use it in GitHub Desktop.
Save lovesegfault/2dff4e80676c514ea7d5d4b65d317ea1 to your computer and use it in GitHub Desktop.
{ config, lib, pkgs, ... }: {
secrets.files.stcg-aarch64-builder-key.file = pkgs.mkSecret ../secrets/stcg-aarch64-builder.key;
nix = {
distributedBuilds = true;
buildMachines = [
{
hostName = "147.75.47.54";
maxJobs = 32;
speedFactor = 1;
sshKey = config.secrets.files.stcg-aarch64-builder-key;
sshUser = "bemeurer";
system = "aarch64-linux";
supportedFeatures = [ "big-parallel" ];
}
];
extraOptions = ''
builders-use-substitutes = true
'';
};
programs.ssh.knownHosts.stcg-aarch64-builder = {
hostNames = [ "147.75.47.54" ];
publicKey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBu4po2uc2f53/X3dC+kb+JeJ+HFh5/vKI1ZAYGpG5Yp";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment