#!/bin/bash

# omarchy:summary=Remove Tailscale and its bar plugin.
# omarchy:requires-sudo=true

tailscale down 2>/dev/null || true
systemctl --user disable --now omarchy-tailscale-receive.service 2>/dev/null || true
sudo systemctl disable --now tailscaled.service 2>/dev/null || true
omarchy-plugin-disable omarchy.tailscale
omarchy-webapp-remove "Tailscale" 2>/dev/null || true
omarchy-pkg-drop tailscale

echo ""
echo "Tailscale has been removed."
