1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{ config, ... }: { topology.mainVpn = { currentNodeIP = "<VPN IPv6 address>"; }; networking.interfaces."${config.topology.mainVpn.interfaceName}" = { virtual = true; virtualType = "tun"; ipv6.addresses = [ { address = config.topology.mainVpn.currentNodeIP; prefixLength = 64; } ]; }; }