aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-12-31 11:07:59 +0100
committerKarel Kočí <cynerd@email.cz>2024-12-31 11:07:59 +0100
commitc74091f90e8d936319baa168d336e4ab04e5c687 (patch)
tree64d2f81bcf03edd82bf86382034d2386e2736bb1 /nixos
parent08b01b7ff77a60c11cc7df44d564091e873c7abd (diff)
downloadnixos-personal-c74091f90e8d936319baa168d336e4ab04e5c687.tar.gz
nixos-personal-c74091f90e8d936319baa168d336e4ab04e5c687.tar.bz2
nixos-personal-c74091f90e8d936319baa168d336e4ab04e5c687.zip
nixos/wireguard: fix routing to the ADM networkHEADmaster
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/wireguad.nix12
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;