add 'nix run' demo

This commit is contained in:
Sebastien Bourdeauducq 2023-05-27 15:36:00 +08:00
parent bf681b20aa
commit 4dcd3699fe
1 changed files with 16 additions and 3 deletions

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 {
inherit self;
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;
};
};
};
}