From 7c79f33323228172f5b01c11cde1bef150ef6dd4 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 7 Oct 2023 11:38:57 -0400 Subject: vpn setup --- modules/vpn.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/vpn.nix') diff --git a/modules/vpn.nix b/modules/vpn.nix index 3f461aa..27cb83f 100644 --- a/modules/vpn.nix +++ b/modules/vpn.nix @@ -79,7 +79,14 @@ in { "${config.age.secrets."${config.networking.hostName}-wireguard-key".path}"; allowedIPsAsRoutes = true; listenPort = cfg.listenPort; - peers = getPeers config.networking.hostName; + peers = [ + { + name = "dragon"; + endpoint = "vpn.orbekk.com"; + publicKey = "9q8aH3R8YBfP3xiTmN5bNiLQswY5dy3grB/P0vDqP0M="; + allowedIPs = ["${vpn-prefix}::/64"]; + } + ]; }; }; }; -- cgit v1.2.3