-
Notifications
You must be signed in to change notification settings - Fork 4
/
buildMachines.nix
46 lines (42 loc) · 1.29 KB
/
buildMachines.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ config, lib, ... }:
{
programs.ssh.knownHosts = {
nuc = {
hostNames = [ "nuc" "nuc.thewagner.home" ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIKaEtc8PNqhxAQ24gY5t25Y/8HU6StUB6kmU1xmVta7";
};
rp3 = {
hostNames = [ "rp3" "rp3.thewagner.home" ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC7PpM3BlMNoiS1RtdAPPktucd2USaYaifLaE5Hd63RA";
};
rp4 = {
hostNames = [ "rp4" "rp4.thewagner.home" ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID/z/WxE1OsrpXsv+NtHv5jkZtKRF9RtrFGVZyXWzMhm";
};
};
nix = {
distributedBuilds = true;
buildMachines =
let
sshUser = "root";
sshKey = "/root/remote-builder";
in
lib.filter (m: m.hostName != "${config.networking.hostName}") [
{
hostName = "nuc";
systems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
maxJobs = 4;
supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ];
inherit sshUser sshKey;
}
{
hostName = "rp4";
systems = [ "aarch64-linux" ];
maxJobs = 2;
supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ];
inherit sshUser sshKey;
speedFactor = 2;
}
];
};
}