From c74091f90e8d936319baa168d336e4ab04e5c687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 31 Dec 2024 11:07:59 +0100 Subject: nixos/wireguard: fix routing to the ADM network --- nixos/modules/wireguad.nix | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/wireguad.nix b/nixos/modules/wireguad.nix index dd9e978..b49eaae 100644 --- a/nixos/modules/wireguad.nix +++ b/nixos/modules/wireguad.nix @@ -66,20 +66,14 @@ in { IPv4Forwarding = "yes"; }; routes = - (optional (hostName != "lipwig") { - # OpenVPN network - Gateway = config.cynerd.hosts.wg.lipwig; - Destination = "10.8.0.0/24"; - Metric = 2048; - }) - ++ (optional (hostName != "spt-omnia") { + (optional (hostName != "spt-omnia") { # SPT network Gateway = config.cynerd.hosts.wg.spt-omnia; Destination = "10.8.2.0/24"; Metric = 2048; }) - ++ (optional (hostName != "adm-omnia" && hostName != "lipwig") { - # Adamkovi network + ++ (optional (hostName != "adm-omnia") { + # ADM network Gateway = config.cynerd.hosts.wg.adm-omnia; Destination = "10.8.3.0/24"; Metric = 2048; -- cgit v1.2.3