diff --git a/clanServices/syncthing/vars.nix b/clanServices/syncthing/vars.nix index 0f38223f3..63fa75410 100644 --- a/clanServices/syncthing/vars.nix +++ b/clanServices/syncthing/vars.nix @@ -11,7 +11,9 @@ pkgs.syncthing ]; script = '' - syncthing generate --config "$out" + export TMPDIR=/tmp + TEMPORARY=$(mktemp -d) + syncthing generate --config "$out" --data "$TEMPORARY" mv "$out"/key.pem "$out"/key mv "$out"/cert.pem "$out"/cert cat "$out"/config.xml | grep -oP '(?<= "$out"/id