added remote builder
This commit is contained in:
parent
136244567f
commit
27989ba79d
2 changed files with 23 additions and 0 deletions
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
22
hosts/desktop/remoteBuilder.nix
Normal file
22
hosts/desktop/remoteBuilder.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue