diff --git a/configs/tailnet.nix b/configs/tailnet.nix index bcbde40..3e04b39 100644 --- a/configs/tailnet.nix +++ b/configs/tailnet.nix @@ -217,10 +217,10 @@ let APIURL="https://api.tailscale.com/api/v2/tailnet/-/acl" TOKEN="$(cat ${config.sops.secrets.tailnet_acl_manager.path}):" - ERROR="$(${pkgs.curl}/bin/curl "$APIURL/validate" -u "$TOKEN" -d @${tailnetACLs} | $JQ -r .message)" + ERROR="$(${pkgs.curl}/bin/curl "$APIURL/validate" -s -u "$TOKEN" -d @${tailnetACLs} | $JQ -r .message)" if [ "$ERROR" = "null" ]; then - RESP="$(${pkgs.curl}/bin/curl "$APIURL" -u "$TOKEN" -d @${tailnetACLs} | $JQ -r .message)" + RESP="$(${pkgs.curl}/bin/curl "$APIURL" -s -u "$TOKEN" -d @${tailnetACLs} | $JQ -r .message)" if [ "$RESP" != "null" ]; then $PO -title "Failed to update TailNet!" -body "$RESP" fi