From fd33094387485da022b8442d8d2fc11990023435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 16 Jan 2020 12:05:05 +0100 Subject: [PATCH] nix: bump stalled-download-timeout to 10 minutes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- nix/README.md | 7 +++++++ nix/nix.conf | 2 ++ 2 files changed, 9 insertions(+) diff --git a/nix/README.md b/nix/README.md index c01e2fed0c..ec3952f4d7 100644 --- a/nix/README.md +++ b/nix/README.md @@ -94,3 +94,10 @@ export NIX_IGNORE_SYMLINK_STORE=1 Add it to your `.bashrc` or any other shell config file. __NOTE__: Your old `/nix` directory will end up in `/Users/Shared/Relocated Items/Security/nix` after OS upgrade. + +### Cache Downloads Timing Out + +If copying from Nix Cache times out you can adjust the timeout by changing [`nix/nix.conf`](/nix/nix.conf): +```conf +stalled-download-timeout = 9001 +``` diff --git a/nix/nix.conf b/nix/nix.conf index a4e2f9930c..c94a73b589 100644 --- a/nix/nix.conf +++ b/nix/nix.conf @@ -1,5 +1,7 @@ # NOTE: If you are in Asia you might want to add https://nix-cache-cn.status.im/ to substituters substituters = https://nix-cache.status.im/ https://cache.nixos.org/ trusted-public-keys = nix-cache.status.im-1:x/93lOfLU+duPplwMSBR+OlY4+mo+dCN7n0mr4oPwgY= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-cache-cn.status.im:WUiOoTQQurm+rEL/yuAuU/a3TViDtMM9DCMgMx/KkOw= +# Some downloads are multiple GB, default is 5 minutes +stalled-download-timeout = 600 connect-timeout = 10 max-jobs = auto