https://github.com/hugolgst/nixos-wireguard
Wireguard server on a Google Cloud VM running NixOS
https://github.com/hugolgst/nixos-wireguard
google-cloud nixos wireguard-server
Last synced: about 2 months ago
JSON representation
Wireguard server on a Google Cloud VM running NixOS
- Host: GitHub
- URL: https://github.com/hugolgst/nixos-wireguard
- Owner: hugolgst
- Created: 2021-02-21T22:01:23.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-25T16:30:22.000Z (about 4 years ago)
- Last Synced: 2025-02-03T12:53:42.415Z (3 months ago)
- Topics: google-cloud, nixos, wireguard-server
- Language: Nix
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://nixos.wiki/wiki/Install_NixOS_on_GCE).
2. Then I created a static IP address following [this](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address).
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.```bash
cd /etc
git clone [email protected]:hugolgst/nixos-wireguard.git nixos
```Then tweak the `configuration.nix` for your needs.
and rebuild the system.```bash
nixos-rebuild switch
```