add 'nix run' demo

This commit is contained in:
Sebastien Bourdeauducq 2023-05-27 15:36:00 +08:00
parent bf681b20aa
commit 4dcd3699fe

View File

@ -12,13 +12,26 @@
pkgs = nixpkgs.legacyPackages.${system};
in {
in rec {
lib = import ./wfvm {
inherit pkgs;
};
packages.${system}.demoImage = import ./wfvm/demo-image.nix {
packages.${system} = rec {
demoImage = import ./wfvm/demo-image.nix {
inherit self;
};
default = lib.utils.wfvm-run {
name = "demo";
image = demoImage;
script =
''
echo "Windows booted. Press Enter to terminate VM."
read
'';
display = true;
};
};
};
}