#!/bin/bash

# Install the NordVPN service with optional GUI.

echo "Installing NordVPN..."
omarchy-pkg-aur-add nordvpn-bin

echo "Enabling NordVPN daemon..."
sudo systemctl enable --now nordvpnd

echo "Adding user to nordvpn group..."
sudo usermod -aG nordvpn "$USER"

echo ""
echo "NordVPN installed! Please log out and back in for group changes to take effect."
echo "Then run 'nordvpn login' to authenticate with your NordVPN account."
