Test network of containers

I want to create a network of 3 hosts to see how a program interact in a small network
Does the following configuration.nix create an internal network of said containers for me to play with?

{config,...}:
{
  containers=rec{
    node1={
      privateNetwork=true;
      hostAddress="192.168.0.10";
      localAddress="192.168.0.11";
      config={config,pkgs,...}:{
        envieronment.systemPackages=[package-to-test]
      };
    };
    node2=node1//{
      
      hostAddress= "192.168.0.20";
      localAddress="192.168.0.21";
    };
    node3=node1//{

      hostAddress= "192.168.0.30";
      localAddress="192.168.0.31";
    };

  };
}