mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
hosts/plover: update Wireguard routing
This commit is contained in:
parent
4dcb82c72b
commit
e76a881aee
@ -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; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user