feat: distributed builder on sumireko, "renko" for x86_64-linux

This commit is contained in:
Kat Inskip 2022-07-17 16:01:03 -07:00
parent 0ec547ab6a
commit 259b2338eb
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
5 changed files with 109 additions and 5 deletions

View file

@ -8,6 +8,9 @@
ci.flake = inputs.ci;
};
package = pkgs.nixUnstable;
binaryCaches = [ "https://arc.cachix.org" "https://kittywitch.cachix.org" "https://nix-community.cachix.org" ];
binaryCachePublicKeys =
[ "arc.cachix.org-1:DZmhclLkB6UO0rc0rBzNpwFbbaeLfyn+fYccuAy7YVY=" "kittywitch.cachix.org-1:KIzX/G5cuPw5WgrXad6UnrRZ8UDr7jhXzRTK/lmqyK0=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=" ];
extraOptions = ''
experimental-features = nix-command flakes
keep-derivations = true

View file

@ -4,9 +4,52 @@
darwin.base
darwin.kat
];
security.pam.enableSudoTouchIdAuth = true;
home-manager.users.root.programs.ssh = {
enable = true;
matchBlocks = {
"daiyousei-build" = {
hostname = "daiyousei.kittywit.ch";
port = 62954;
user = "root";
};
"renko-build" = {
hostname = "192.168.64.3";
port = 62954;
user = "root";
};
};
};
nix = {
envVars = {
"SSH_AUTH_SOCK" = "/Users/kat/.gnupg/S.gpg-agent.ssh";
};
buildMachines = [
{
hostName = "renko-build";
sshUser = "root";
system = "x86_64-linux";
maxJobs = 100;
speedFactor = 1;
supportedFeatures = [ "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}
{
hostName = "daiyousei-build";
sshUser = "root";
system = "aarch64-linux";
maxJobs = 100;
speedFactor = 1;
supportedFeatures = [ "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}
];
distributedBuilds = true;
};
homebrew = {
brewPrefix = "/opt/homebrew/bin";
casks = [
@ -18,11 +61,12 @@
"utm"
"mullvadvpn"
"bitwarden"
];
masApps = {
Tailscale = 1475387142;
"gimp"
];
masApps = {
Tailscale = 1475387142;
};
};
};
environment.systemPackages = with pkgs; [
terraform