summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-04-13 14:23:46 +0200
committerRory& <root@rory.gay>2026-04-13 14:23:46 +0200
commita6aecc1cc2e493a7c2535a7f4d699ec79d5a7f68 (patch)
treedc88545e72131769278c89317b435b17c4c15c3e
parentEmit presence on identify, support deduped gw events (diff)
downloadserver-ts-a6aecc1cc2e493a7c2535a7f4d699ec79d5a7f68.tar.xz
testvm: unwrap vmVariant settings
-rw-r--r--nix/testVm/vm.nix42
1 files changed, 20 insertions, 22 deletions
diff --git a/nix/testVm/vm.nix b/nix/testVm/vm.nix

index 1b07ec58..1138e8b7 100644 --- a/nix/testVm/vm.nix +++ b/nix/testVm/vm.nix
@@ -9,28 +9,26 @@ (modulesPath + "/virtualisation/qemu-vm.nix") ]; - virtualisation.vmVariant = { - services.xserver.videoDrivers = [ "qxl" ]; - services.spice-vdagentd.enable = true; - virtualisation.qemu.guestAgent.enable = true; - services.qemuGuest.enable = true; - virtualisation.qemu.options = [ - "-vga qxl -device virtio-serial-pci -spice port=5930,disable-ticketing=on -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent" - "-display gtk,zoom-to-fit=off,show-cursor=on" - "-device virtio-balloon" - ]; - virtualisation.memorySize = 8192; - virtualisation.cores = 10; - virtualisation.forwardPorts = [ - # { hostPort = 2222; guestPort = 22; } # Probably shouldn't do this with root:root lol - { - from = "host"; - host.port = 8080; - guest.port = 80; - } - ]; - networking.useDHCP = lib.mkForce true; - }; + services.xserver.videoDrivers = [ "qxl" ]; + services.spice-vdagentd.enable = true; + virtualisation.qemu.guestAgent.enable = true; + services.qemuGuest.enable = true; + virtualisation.qemu.options = [ + "-vga qxl -device virtio-serial-pci -spice port=5930,disable-ticketing=on -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent" + "-display gtk,zoom-to-fit=off,show-cursor=on" + "-device virtio-balloon" + ]; + virtualisation.memorySize = 8192; + virtualisation.cores = 10; + virtualisation.forwardPorts = [ + # { hostPort = 2222; guestPort = 22; } # Probably shouldn't do this with root:root lol + { + from = "host"; + host.port = 8080; + guest.port = 80; + } + ]; + networking.useDHCP = lib.mkForce true; networking.firewall.enable = false;