Adds port forwarding to test vm.
This commit is contained in:
parent
403edc9219
commit
544883897a
|
@ -26,6 +26,7 @@
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
./citrus.nix
|
./citrus.nix
|
||||||
|
"${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
|
||||||
./platforms/clementine.nix
|
./platforms/clementine.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
networking.hostName = "clementine";
|
networking.hostName = "clementine";
|
||||||
|
virtualisation = {
|
||||||
|
forwardPorts = [
|
||||||
|
{ from = "host"; host.port = 2222; guest.port = 22; }
|
||||||
|
];
|
||||||
|
graphics = true;
|
||||||
|
qemu.options = [ "-bios" "${pkgs.OVMF.fd}/FV/OVMF.fd" ];
|
||||||
|
};
|
||||||
|
services.qemuGuest.enable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue