forked from lix-project/hydra
Honor $NIX_STORE_DIR.
This commit is contained in:
parent
f409d2b4f6
commit
ccdb6f2b23
|
@ -242,7 +242,7 @@ sub nix_cache_info :Path('nix-cache-info') :Args(0) {
|
||||||
$c->response->content_type('text/plain');
|
$c->response->content_type('text/plain');
|
||||||
$c->stash->{plain}->{data} =
|
$c->stash->{plain}->{data} =
|
||||||
#"StoreDir: $Nix::Config::storeDir\n" . # FIXME
|
#"StoreDir: $Nix::Config::storeDir\n" . # FIXME
|
||||||
"StoreDir: /nix/store\n" .
|
"StoreDir: " . ($ENV{NIX_STORE_DIR} || "/nix/store") . "\n" .
|
||||||
"WantMassQuery: 0\n" .
|
"WantMassQuery: 0\n" .
|
||||||
# Give Hydra binary caches a very low priority (lower than the
|
# Give Hydra binary caches a very low priority (lower than the
|
||||||
# static binary cache http://nixos.org/binary-cache).
|
# static binary cache http://nixos.org/binary-cache).
|
||||||
|
|
Loading…
Reference in a new issue