Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 854 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 854 Bytes

nixos-wireguard

The configuration and setup guide used to create a Wireguard VPN server using Google Cloud and NixOS.

Google cloud setup

  1. In order to setup a VM instance using NixOS I followed this post.
  2. Then I created a static IP address following this.
  3. I added this firewall rule in order to accept incoming traffic

NixOS setup

To install the wireguard server just clone the content of configuration.nix into /etc/nixos/configuration.nix, or, clone the repository.

cd /etc
git clone git@github.com:hugolgst/nixos-wireguard.git nixos

Then tweak the configuration.nix for your needs. and rebuild the system.

nixos-rebuild switch