summaryrefslogtreecommitdiff
path: root/modules/nixos/remote-build.nix
blob: 7ce2a486494b54cb1fc9ec5966f1815845ddefdd (plain)
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
{ config, ... } : {  
  nix.distributedBuilds = true;
  # nix.settings.builders-use-subsituters = true;
  nix.buildMachines = [
    {
      hostName = "doretta";
      systems = [ "x86_64-linux" "aarch64-linux"];
      supportedFeatures = [
        "nixos-test"
        "benchmark"
        "big-parallel"
        "llvm"
       ];
      maxJobs = 2; # could be higher but slow internet
      speedFactor = 1;
      sshKey = "/root/.ssh/nixremote";
      sshUser = "nixremote";
    }
    {
      hostName = "biski";
      systems = [ "x86_64-linux" ];
      supportedFeatures = [
        "nixos-test"
        "benchmark"
        "llvm"
      ];
      maxJobs = 1;
      speedFactor = 3;
      sshKey = "/root/.ssh/nixremote";
      sshUser = "nixremote";
    }
  ];
}