add qemu testing to flake
This commit is contained in:
16
flake.nix
16
flake.nix
@@ -66,6 +66,22 @@
|
||||
};
|
||||
});
|
||||
|
||||
apps = forAllSystems (system:
|
||||
let
|
||||
pkgs = nixpkgsFor.x86_64-linux;
|
||||
iso = self.packages.x86_64-linux.boot-env-iso;
|
||||
in
|
||||
{
|
||||
test-iso-x86_64 = {
|
||||
type = "app";
|
||||
program = "${pkgs.writeScriptBin "test-iso" ''
|
||||
#!/bin/sh
|
||||
${pkgs.qemu}/bin/qemu-system-x86_64 -cdrom ${iso}/iso/*.iso -m 1G \
|
||||
-net nic,model=rtl8139 -net user,hostfwd=tcp::8080-:8080
|
||||
''}/bin/test-iso";
|
||||
};
|
||||
});
|
||||
|
||||
devShells = forAllSystems (system:
|
||||
let
|
||||
pkgs = nixpkgsFor.${system};
|
||||
|
||||
Reference in New Issue
Block a user