From 1dd3bd8728bc31bc985d16087a2bd4fcf6e56d16 Mon Sep 17 00:00:00 2001 From: Robin Stumm Date: Sun, 29 Aug 2021 22:20:14 +0200 Subject: [PATCH] nixos/syncthing: fix declarative init crash on HTTPS A previous config may be present that has HTTPS for the REST API enabled. --- nixos/modules/services/networking/syncthing.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 1a1b12f979c2..ebe4d89a0e7f 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -37,7 +37,7 @@ let do sleep 1; done curl() { - ${pkgs.curl}/bin/curl -sS -H "X-API-Key: $api_key" \ + ${pkgs.curl}/bin/curl -sSLk -H "X-API-Key: $api_key" \ --retry 1000 --retry-delay 1 --retry-all-errors \ "$@" }