From 268dbf181ab5aa27d49bb43eb79b4d4da9941b70 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 28 Nov 2024 15:30:55 +0100 Subject: [PATCH] simplify VPN network config --- systems/LoutreOS/network.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/systems/LoutreOS/network.nix b/systems/LoutreOS/network.nix index e65303b..6c97c79 100644 --- a/systems/LoutreOS/network.nix +++ b/systems/LoutreOS/network.nix @@ -283,14 +283,11 @@ ####### # Wireguard ARN network configuation - "10-wg0" = let - vpnIPv4 = "89.234.141.196/32"; - vpnIPv6 = "2a00:5881:8119:400::1/128"; - in { + "10-wg0" = { matchConfig.Name = "wg0"; address = [ - vpnIPv4 - vpnIPv6 + "89.234.141.196/32" + "2a00:5881:8119:400::1/128" ]; routingPolicyRules = [ # Route outgoing emails to VPN table