Adds port forwarding to test vm.

This commit is contained in:
Bailey 2023-08-03 19:25:15 -04:00
parent 403edc9219
commit 544883897a
2 changed files with 9 additions and 0 deletions

View file

@ -26,6 +26,7 @@
inherit pkgs;
modules = [
./citrus.nix
"${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
./platforms/clementine.nix
];
};

View file

@ -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;
}