nix/module/RemoteBuild.nix

24 lines
655 B
Nix
Raw Normal View History

2024-03-09 18:38:41 +03:00
{ config, pkgs, ... }: {
2024-04-28 21:29:11 +03:00
# NOTE: Requires key to be present in secret.ssh.builderKeys.
2024-03-09 18:38:41 +03:00
nix.buildMachines = [{
2024-04-27 00:24:28 +03:00
hostName = "nixbuilder";
2024-03-09 18:38:41 +03:00
protocol = "ssh-ng";
2024-03-09 20:29:19 +03:00
systems = [
"x86_64-linux"
"i686-linux"
"aarch64-linux"
];
2024-03-09 18:38:41 +03:00
maxJobs = 1;
speedFactor = 2;
mandatoryFeatures = [ ];
2024-03-09 20:21:34 +03:00
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
2024-03-09 18:38:41 +03:00
}];
nix.distributedBuilds = true;
nix.extraOptions = ''
builders-use-substitutes = true
2024-04-14 06:44:00 +03:00
extra-substituters = ssh-ng://nixbuilder
extra-trusted-substituters = ssh-ng://nixbuilder
extra-trusted-public-keys = nixbuilder-1:Skghjixd8lPzNe2ZEgYLM9Pu/wF9wiZtZGsdm3bo9h0=
2024-03-09 18:38:41 +03:00
'';
}