diff options
author | Karel Kočí <cynerd@email.cz> | 2024-12-31 11:07:59 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-12-31 11:07:59 +0100 |
commit | c74091f90e8d936319baa168d336e4ab04e5c687 (patch) | |
tree | 64d2f81bcf03edd82bf86382034d2386e2736bb1 | |
parent | 08b01b7ff77a60c11cc7df44d564091e873c7abd (diff) | |
download | nixos-personal-c74091f90e8d936319baa168d336e4ab04e5c687.tar.gz nixos-personal-c74091f90e8d936319baa168d336e4ab04e5c687.tar.bz2 nixos-personal-c74091f90e8d936319baa168d336e4ab04e5c687.zip |
-rw-r--r-- | nixos/modules/wireguad.nix | 12 |
1 files changed, 3 insertions, 9 deletions
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; |