From 0aa80c39271a5ed2a0399098a0e15455e6f4b1e2 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 17 Mar 2021 13:10:11 +0100 Subject: [PATCH] Configure Wireguard client for COACE --- modules/networking.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/networking.nix b/modules/networking.nix index eece64c..2139d47 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -31,6 +31,19 @@ } ]; }; + wg1 = { + address = [ "10.9.0.2/32" ]; + privateKeyFile = "/home/coolneng/.wg/keys/privatekey"; + peers = [ + # unit + { + publicKey = "SYfPEKJkO3HaCiQdV/iionsS6CEjLcLt9C0x0Ib3tEU="; + allowedIPs = [ "10.9.0.1/32" "10.0.1.0/24" ]; + endpoint = "coace.ddns.net:1194"; + persistentKeepalive = 25; + } + ]; + }; }; # Enable localhost SSH