melodypond/platforms/riversong.nix

22 lines
551 B
Nix
Raw Normal View History

{pkgs, modulesPath, ...}:
2023-08-03 20:00:12 +00:00
{
imports = [
"${modulesPath}/virtualisation/qemu-vm.nix"
];
2023-09-21 07:55:51 +00:00
networking.hostName = "riversong";
2023-08-03 23:25:15 +00:00
virtualisation = {
forwardPorts = [
{ from = "host"; host.port = 2222; guest.port = 22; }
2023-09-24 20:16:02 +00:00
{ from = "host"; host.port = 8888; guest.port = 80; }
2023-08-03 23:25:15 +00:00
];
graphics = true;
2023-08-04 00:34:02 +00:00
qemu.options = [
"-bios" "${pkgs.OVMF.fd}/FV/OVMF.fd"
"-audiodev" "driver=pa,id=default"
"-device" "intel-hda"
"-device" "hda-output,audiodev=default"
];
2023-08-03 23:25:15 +00:00
};
services.qemuGuest.enable = true;
2023-08-03 20:00:12 +00:00
}