mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
remote builders
This commit is contained in:
parent
1a25f96b52
commit
91861782f5
4 changed files with 42 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
8
modules/home/all/buildMachines/default.nix
Normal file
8
modules/home/all/buildMachines/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
nix = {
|
||||
package = pkgs.nix;
|
||||
enable = true;
|
||||
distributedBuilds = true;
|
||||
};
|
||||
}
|
||||
26
modules/home/all/buildMachines/sincereintent.nix
Normal file
26
modules/home/all/buildMachines/sincereintent.nix
Normal 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==";
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue