build-remote: Implement in C++

This commit is contained in:
Shea Levy 2016-07-18 18:50:27 -04:00
parent 2af5d35fdc
commit 167d12b02c
12 changed files with 338 additions and 30 deletions

View file

@ -43,6 +43,7 @@ in
{ config, pkgs, ... }:
{ nix.maxJobs = 0; # force remote building
nix.distributedBuilds = true;
nix.envVars = pkgs.lib.mkAfter { NIX_BUILD_HOOK = "${nix}/libexec/nix/build-remote"; };
nix.buildMachines =
[ { hostName = "slave1";
sshUser = "root";