nix/module/RemoteBuild.nix

23 lines
566 B
Nix
Raw Normal View History

2024-03-09 18:38:41 +03:00
{ config, pkgs, ... }: {
nix.buildMachines = [{
hostName = "home";
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-03-10 06:50:43 +03:00
extra-substituters = ssh-ng://home
extra-trusted-substituters = ssh-ng://home
extra-trusted-public-keys = home:i9dE2VZI40/LCM/mmUGs8kwal1bQo3xbSjrzxhInmOw=
2024-03-09 18:38:41 +03:00
'';
}