I'd like to have a nixos container that is visible to the outside network. I'd like to setup a static IP for that container that some other laptop on my network at home can ssh into the container. The container should be accessible to more than just the host it resides on. So lets label these computers. (A) is the nixos host. (B) is the container residing on (A). And (C) is a third separate computer on the network that wants to access (B) over the network. If someone could provide the simplest configuration that should be added to the /etc/nixos/configuration.nix
file to achieve this that would be tremendously appreciated.
+-------------------+ +--------+ | | | | | +--------+ A | | C | | | | | | +-----------------------------------> B | | | | | | | | +--------+ | | | | | +--------+ | | | | | +-------------------+
There are several ways to do that, and all aren't NixOS specific here.
haproxy
)