Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions bin/omarchy-install-nordvpn
Original file line number Diff line number Diff line change
@@ -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."
3 changes: 2 additions & 1 deletion bin/omarchy-menu
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,11 @@ show_install_menu() {
}

show_install_service_menu() {
case $(menu "Install" " Dropbox\n Tailscale\n󰟵 Bitwarden\n Chromium Account") in
case $(menu "Install" " Dropbox\n Tailscale\n󰟵 Bitwarden\n󱇱 NordVPN\n Chromium Account") in
*Dropbox*) present_terminal omarchy-install-dropbox ;;
*Tailscale*) present_terminal omarchy-install-tailscale ;;
*Bitwarden*) install_and_launch "Bitwarden" "bitwarden bitwarden-cli" "bitwarden" ;;
*NordVPN*) present_terminal omarchy-install-nordvpn ;;
*Chromium*) present_terminal omarchy-install-chromium-google-account ;;
*) show_install_menu ;;
esac
Expand Down