Adds port forwarding to test vm.
This commit is contained in:
parent
403edc9219
commit
544883897a
2 changed files with 9 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
inherit pkgs;
|
||||
modules = [
|
||||
./citrus.nix
|
||||
"${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
|
||||
./platforms/clementine.nix
|
||||
];
|
||||
};
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
{pkgs, ...}:
|
||||
{
|
||||
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