mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-23 07:55:40 +00:00
testvm: unwrap vmVariant settings
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user