Merge pull request #749 from lopsided98/localhost-no-remote

Don't distribute localhost builds to other builders
This commit is contained in:
Eelco Dolstra 2020-05-04 16:36:53 +02:00 committed by GitHub
commit ace30b4184
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ static void openConnection(Machine::ptr machine, Path tmpDir, int stderrFD, Chil
Strings argv;
if (machine->isLocalhost()) {
pgmName = "nix-store";
argv = {"nix-store", "--serve", "--write"};
argv = {"nix-store", "--builders", "", "--serve", "--write"};
}
else {
pgmName = "ssh";