NixOS container: assigning more than one IP address

When I declare a container roughly similar to the one described on the wiki, how can I assign it more than one IP address? I want to have a container with a single interface, that has multiple IPv4 and IPv6 addresses.

1 Like

Apparently this can be done when setting up networking inside of the container. That can be done when the capability to do this is granted, so as long as you don’t drop the CAP_NET_ADMIN capability, you should be able to setup additional IP addresses with normal nixos options.