feat: add NordVPN to installable services with optional GUI

- Add omarchy-install-nordvpn script that:
  - Installs nordvpn-bin from AUR
  - Enables nordvpnd daemon
  - Adds user to nordvpn group
  - Optionally installs NordVPN GUI with TUI entry
  - Detects existing GUI installation to avoid conflicts

- Add NordVPN option to Install > Service menu with 󱇱 icon
This commit is contained in:
Jamer Rebolledo
2026-02-01 23:59:00 -05:00
parent a7995efac2
commit d8660fd2c8
2 changed files with 33 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
# Install the NordVPN service with optional GUI.
echo "Installing NordVPN..."
yay -S --noconfirm nordvpn-bin
# Enable and start the NordVPN daemon
echo "Enabling NordVPN daemon..."
sudo systemctl enable --now nordvpnd
# Add user to nordvpn group for unprivileged access
echo "Adding user to nordvpn group..."
sudo usermod -aG nordvpn $USER
# Ask if user wants to install the GUI (if not already installed)
if ! pacman -Qi nordvpn-gui &>/dev/null && ! pacman -Qi nordvpn-gui-bin &>/dev/null; then
if gum confirm "Would you like to install the NordVPN GUI?"; then
echo "Installing NordVPN GUI..."
yay -S --noconfirm nordvpn-gui
omarchy-tui-install "NordVPN" "nordvpn-gui" float https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/nordvpn.png
fi
else
echo "NordVPN GUI is already installed."
# Ensure TUI entry exists
omarchy-tui-install "NordVPN" "nordvpn-gui" float https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/nordvpn.png
fi
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."