let img = (import { device = import ; liminix-config = ./configuration.nix; }).outputs.vmroot; pkgs = import { overlays = [ (import ../../overlay.nix) ]; }; in pkgs.runCommand "check" { nativeBuildInputs = with pkgs; [ expect socat ]; } '' mkdir vm ${img}/run.sh --background ./vm expect ${./script.expect} >$out ''