From 08d7dc46b3b336cc45fa135248edd1eecc237b2b Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sun, 15 Dec 2024 23:31:34 +0100 Subject: [PATCH] fix(modules/dgn-network): Make it work on web02 This is the only node still on 24.05 as the cas server is f*cked --- modules/nixos/dgn-network.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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}";