summaryrefslogtreecommitdiff
path: root/modules/nixos/remote-build.nix
blob: 79da57e403582c0d50b5b88c24bcced65de157ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ 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";
    }
  ];
}