From 9e2628dbba193b08c9a3f119d31e9bba9fb024b0 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 4 Aug 2017 12:05:38 +0200 Subject: [PATCH] First attempt at Wireguard configuration --- systems/desktop.nix | 9 ++++----- systems/laptop.nix | 10 +++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/systems/desktop.nix b/systems/desktop.nix index 1f9fd47..f81dad6 100644 --- a/systems/desktop.nix +++ b/systems/desktop.nix @@ -140,13 +140,12 @@ in { networking.wireguard = { wg0 = { - /*ips = [ "192.168.20.4/24" ];*/ + ips = [ "192.168.3.1/24" ]; privateKey = (import ../private/credentials.nix).wireguard.privateKey; - /*peers = [ - { allowedIPs = [ "192.168.20.1/32" ]; + peers = [{ + allowedIPs = [ "192.168.3.2/32" ]; publicKey = "2LAxq8w89vdCqa+Jdtk4xsaJ0OcbU/jv71mzm/K0pXE="; - endpoint = "demo.wireguard.io:12913"; } - ];*/ + }]; }; }; diff --git a/systems/laptop.nix b/systems/laptop.nix index 81f720e..75376c8 100644 --- a/systems/laptop.nix +++ b/systems/laptop.nix @@ -62,13 +62,13 @@ in { networking.wireguard = { wg0 = { - /*ips = [ "192.168.20.4/24" ];*/ + ips = [ "192.168.3.2" ]; privateKey = (import ../private/credentials.nix).wireguard.privateKey; - /*peers = [ - { allowedIPs = [ "192.168.20.1/32" ]; + peers = [{ + allowedIPs = [ "0.0.0.0/0" ]; publicKey = "MoU34/IBbMrcNnNQdVuJCJB7WZul3GTUwhEVJ7paIQI="; - endpoint = "demo.wireguard.io:12913"; } - ];*/ + endpoint = "80.100.254.69:51820"; + }]; }; };