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

@ -17,6 +17,10 @@ in
"${homeMod}/all/juspay-vertex.nix"
# "${homeMod}/all/1password.nix"
(self + /modules/home/all/vira.nix)
# Remote builders
"${homeMod}/all/buildMachines"
"${homeMod}/all/buildMachines/sincereintent.nix"
];
home.username = "srid";
@ -28,6 +32,4 @@ in
command = "${lib.getExe config.programs.tmux.package} new-session -A -s gotty";
write = true;
};
}

View file

@ -18,6 +18,10 @@ in
"${homeMod}/all/terminal.nix"
"${homeMod}/all/juspay-vertex.nix"
# "${homeMod}/all/1password.nix"
# Remote builders
"${homeMod}/all/buildMachines"
"${homeMod}/all/buildMachines/sincereintent.nix"
];
home.username = "srid";

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==";
}
];
}