let hostIp = "fc00::2"; localIp = "fc00::1"; in import ( { pkgs, ... }: { machine = { config, pkgs, lib, ... }: { containers.shape2 = { privateNetwork = true; hostAddress6 = hostIp; localAddress6 = localIp; config = import ../machines/container-shape.nix { inherit config pkgs lib; }; }; }; testScript = '' $machine->waitForUnit("default.target"); $machine->succeed("nixos-container list") =~ /shape2/ or die; $machine->succeed("nixos-container start shape2"); $machine->succeed("nixos-container run shape2 -- hostname") =~ /shape/ or die; $machine->succeed("nixos-container run shape2 -- test -e /init"); ''; })