Skip to content

Commit

Permalink
Change the default for use-ssh-substituter to ‘true’
Browse files Browse the repository at this point in the history
Now you only have to pass ‘--option ssh-substituter-hosts
nix-ssh@bla’ to enable SSH substitution.
  • Loading branch information
edolstra committed Jul 25, 2014
1 parent 1a44f1c commit 71a20d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstore/globals.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Settings::Settings()
useSubstitutes = true;
buildUsersGroup = getuid() == 0 ? "nixbld" : "";
useChroot = false;
useSshSubstituter = false;
useSshSubstituter = true;
impersonateLinux26 = false;
keepLog = true;
compressLog = true;
Expand Down Expand Up @@ -166,7 +166,7 @@ void Settings::update()
#endif
substituters.push_back(nixLibexecDir + "/nix/substituters/download-using-manifests.pl");
substituters.push_back(nixLibexecDir + "/nix/substituters/download-from-binary-cache.pl");
if (useSshSubstituter)
if (useSshSubstituter && !sshSubstituterHosts.empty())
substituters.push_back(nixLibexecDir + "/nix/substituters/download-via-ssh");
} else
substituters = tokenizeString<Strings>(subs, ":");
Expand Down

0 comments on commit 71a20d4

Please sign in to comment.