Merge branch 'master' of github.com:JakeGinesin/nix-dots
This commit is contained in:
24
system/services/remote-builds.nix
Normal file
24
system/services/remote-builds.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
nix.distributedBuilds = true;
|
||||||
|
# nix.extraOptions = ''
|
||||||
|
# builders-use-substitutes = true
|
||||||
|
# '';
|
||||||
|
|
||||||
|
nix.buildMachines = [
|
||||||
|
{
|
||||||
|
hostName = "server3-gpu"; # Must be resolvable or an IP
|
||||||
|
system = "x86_64-linux"; # The architecture of the builder
|
||||||
|
protocol = "ssh-ng"; # Optimized protocol
|
||||||
|
maxJobs = 4;
|
||||||
|
speedFactor = 2;
|
||||||
|
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
||||||
|
mandatoryFeatures = [];
|
||||||
|
sshUser = "synchronous";
|
||||||
|
sshKey = "/home/synchronous/.ssh/id_ed25519"; # Path to private key on client
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -10,5 +10,6 @@
|
|||||||
# ./resolved/default.nix (not enabled, in favor of dnsmasq)
|
# ./resolved/default.nix (not enabled, in favor of dnsmasq)
|
||||||
./dnsmasq/default.nix
|
./dnsmasq/default.nix
|
||||||
./printing.nix
|
./printing.nix
|
||||||
|
./remote-builds.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user