virtualisation.vlans
Virtual networks to which the container or VM is connected. Each number «N» in
this list causes the container to have a virtual Ethernet interface
attached to a separate virtual network on which it will be assigned IP
address 192.168.«N».«M», where «M» is the index of this container in
the list of containers.
- Type
list of (unsigned integer, meaning >=0)- Default
if cfg.interfaces == {} then [ 1 ] else [ ]- Example
[ 1 2 ]- Declared
- <nixpkgs/nixos/modules/virtualisation/guest-networking-options.nix>