This commit is contained in:
LavaDesu 2025-05-20 02:44:15 +10:00
parent 01793b84f6
commit 97ff0698af
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -93,7 +93,7 @@ let
let let
client = clients."${config.networking.hostName}"; client = clients."${config.networking.hostName}";
routes = routeBypass."${config.networking.hostName}"; routes = routeBypass."${config.networking.hostName}";
mapRoutes = type: lib.concatMapStringsSep "\n" (r: "${pkgs.iproute2}/bin/ip route ${type} ${r} dev ${routes.interface}") routes.routes; mapRoutes = type: lib.concatMapStringsSep "\n" (r: "${pkgs.iproute2}/bin/ip route ${type} ${r} via 192.168.1.1 dev ${routes.interface}") routes.routes;
in { in {
ips = client.allowedIPs; ips = client.allowedIPs;
listenPort = port; listenPort = port;