diff --git a/hosts/plover/modules/services/wireguard.nix b/hosts/plover/modules/services/wireguard.nix index 36fabeda..b1560a5e 100644 --- a/hosts/plover/modules/services/wireguard.nix +++ b/hosts/plover/modules/services/wireguard.nix @@ -79,13 +79,17 @@ in ]; }; - networks."99-${wireguardIFName}" = { - matchConfig.Name = wireguardIFName; + networks."99-${wireguardIFName}" = with interfaces.wireguard0; { + matchConfig.Name = ifname; - address = with interfaces.wireguard0; [ + address = [ "${IPv4.address}/14" "${IPv6.address}/64" ]; + + routes = [ + { routeConfig.Gateway = IPv4.gateway; } + ]; }; }; }