hosts/plover: update Wireguard routing

This commit is contained in:
Gabriel Arazas 2023-06-27 12:54:29 +08:00
parent 4dcb82c72b
commit e76a881aee
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -79,13 +79,17 @@ in
]; ];
}; };
networks."99-${wireguardIFName}" = { networks."99-${wireguardIFName}" = with interfaces.wireguard0; {
matchConfig.Name = wireguardIFName; matchConfig.Name = ifname;
address = with interfaces.wireguard0; [ address = [
"${IPv4.address}/14" "${IPv4.address}/14"
"${IPv6.address}/64" "${IPv6.address}/64"
]; ];
routes = [
{ routeConfig.Gateway = IPv4.gateway; }
];
}; };
}; };
} }