From 80dbe69d87cf2027c40a4e0a767a7918d78146c8 Mon Sep 17 00:00:00 2001 From: Connor Prussin Date: Wed, 8 Jul 2020 15:13:47 -0700 Subject: [PATCH] Add retries when fetching nix install script --- lib/install-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install-nix.sh b/lib/install-nix.sh index 923348a..01f65df 100755 --- a/lib/install-nix.sh +++ b/lib/install-nix.sh @@ -13,7 +13,7 @@ else INPUT_NIX_PATH="/nix/var/nix/profiles/per-user/root/channels" fi -sh <(curl -L ${INPUT_INSTALL_URL:-https://nixos.org/nix/install}) \ +sh <(curl --retry 5 --retry-connrefused -L ${INPUT_INSTALL_URL:-https://nixos.org/nix/install}) \ --daemon --daemon-user-count 4 --nix-extra-conf-file /tmp/nix.conf --darwin-use-unencrypted-nix-store-volume $extra_cmd if [[ $OSTYPE =~ darwin ]]; then