diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-17 18:05:24 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-17 18:05:24 +0200 |
commit | ccd4fe5c490f3885615a01900ac34bc099735815 (patch) | |
tree | c2d7333281578fb63799656f92d7247de8f48aea | |
parent | ad716378dc19c9e5282ce2de77a323a8d4178cd0 (diff) |
build-remote.pl: Provide defaults for $NIX_CURRENT_LOAD and $NIX_REMOTE_SYSTEMS
-rwxr-xr-x | scripts/build-remote.pl.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build-remote.pl.in b/scripts/build-remote.pl.in index ab9392bb0..89d3a43cc 100755 --- a/scripts/build-remote.pl.in +++ b/scripts/build-remote.pl.in @@ -48,8 +48,8 @@ my $loadIncreased = 0; my ($localSystem, $maxSilentTime, $printBuildTrace, $buildTimeout) = @ARGV; -my $currentLoad = $ENV{"NIX_CURRENT_LOAD"}; -my $conf = $ENV{"NIX_REMOTE_SYSTEMS"}; +my $currentLoad = $ENV{"NIX_CURRENT_LOAD"} // "/run/nix/current-load"; +my $conf = $ENV{"NIX_REMOTE_SYSTEMS"} // "@sysconfdir@/nix/machines"; sub openSlotLock { |