added remote builder

This commit is contained in:
willifan 2024-12-08 00:19:36 +01:00
parent 136244567f
commit 27989ba79d
2 changed files with 23 additions and 0 deletions

View file

@ -6,6 +6,7 @@
./nfs-client.nix ./nfs-client.nix
./nix-ld.nix ./nix-ld.nix
./printers.nix ./printers.nix
./remoteBuilder.nix
./ssh-server.nix ./ssh-server.nix
]; ];

View file

@ -0,0 +1,22 @@
{ ... }:
{
nix.buildMachines = [ {
hostName = "Anton";
sshUser = "willifan";
system = "x86_64-linux";
protocol = "ssh";
# if the builder supports building for multiple architectures,
# replace the previous line by, e.g.
# systems = ["x86_64-linux" "aarch64-linux"];
maxJobs = 1;
speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}];
nix.distributedBuilds = true;
# optional, useful when the builder has a faster internet connection than yours
nix.extraOptions = ''
builders-use-substitutes = true
'';
}