diff --git a/lib/default.nix b/lib/default.nix index a507c1f4..9a46c115 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -168,6 +168,16 @@ in { in if cfg.mapHqHosts then hqLocalHosts else { }; + systemd.network.networks = + if cfg.hq.interface != null && config.networking.useNetworkd + then { + "40-eth0".routes = [ { + routeConfig = { + Gateway = "172.22.99.4"; + GatewayOnLink = true; + }; + } ]; + } else {}; networking.interfaces = /* (if cfg.hq.externalInterface == null then { }