MyNixOS website logo
option

networking.interfaces.<name>.virtualType

The type of interface to create. The default is TUN for an interface name starting with "tun", otherwise TAP.

Declarations
Type
one of "tun", "tap"
Default
if hasPrefix "tun" name then "tun" else "tap"