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