Featured image of post NordVPN on NixOS with wgnord

NordVPN on NixOS with wgnord

This is quick guide to run NordVPN on NixOS with wgnord.

wgnord

NordVPN is not available to install yet on NixOS. Though, there are a few ways to use it on NixOS. Here is one relatively easy by using wgnord.

Install

Packages to install/include in the nix config:

  • openresolv
  • wireguard-tools
  • wgnord

Discussion & tips from: https://github.com/NixOS/nixpkgs/issues/101864#issuecomment-1859214194

1
2
3
4
5
6
sudo mkdir /etc/wireguard # create if it doesn't exist
sudo mkdir -p /var/lib/wgnord # create if it doesn't exist
sudo nano /var/lib/wgnord/template.conf	# copy content from https://raw.githubusercontent.com/phirecc/wgnord/master/template.conf
sudo wgnord l "keyxxx" # create a token in the NordVPN dashboard
sudo wgnord c Germany # connect to a server, e.g Germany 
sudo wgnord d # disconnect

Cover photo by Pawel Czerwinski on Unsplash

Licensed under CC BY-NC-SA 4.0
Last updated on Jul 17, 2024 12:22 CET
Built with Hugo
Theme Stack designed by Jimmy