diff --git a/modules/nixos/dgn-network.nix b/modules/nixos/dgn-network.nix index 6b2e3a8..a06be2f 100644 --- a/modules/nixos/dgn-network.nix +++ b/modules/nixos/dgn-network.nix @@ -17,10 +17,20 @@ let net' = meta.network.${name}; mkAddress = { address, prefixLength, ... }: "${address}/${builtins.toString prefixLength}"; - mkRoute = gateway: { - Gateway = gateway; - GatewayOnLink = true; - }; + mkRoute = + Gateway: + if name == "web02" then + { + routeConfig = { + inherit Gateway; + GatewayOnLink = true; + }; + } + else + { + inherit Gateway; + GatewayOnLink = true; + }; mkInterface = interface: net: { name = "10-${interface}";