remote builders

This commit is contained in:
Sridhar Ratnakumar 2025-10-17 10:03:58 -04:00
parent 1a25f96b52
commit 91861782f5
4 changed files with 42 additions and 2 deletions

View file

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
nix = {
package = pkgs.nix;
enable = true;
distributedBuilds = true;
};
}

View file

@ -0,0 +1,26 @@
{ ... }:
{
# Configure remote building to sincereintent (macOS builder)
nix.buildMachines = [
{
# hostName = "sincereintent"; TAILSCALE problem
hostName = "192.168.2.247";
sshUser = "srid";
systems = [ "aarch64-darwin" ];
protocol = "ssh-ng";
maxJobs = 16;
speedFactor = 2;
supportedFeatures = [ "benchmark" "big-parallel" ];
mandatoryFeatures = [ ];
# We need this!
sshKey = "/home/srid/.ssh/id_ed25519";
# This too!
# Run on the remote machine:
# nix run nixpkgs#base64 -w0 /etc/ssh/ssh_host_ed25519_key.pub
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSU82S2Q2OG5LdFlqNVhTaWgveVlteE96M2o0WUdMUGQxUTE1cTF0dUdsZWUgCg==";
}
];
}