18 lines
465 B
Nix
Raw Normal View History

2022-10-06 00:43:34 +03:00
{ modulesPath, config, ... }: {
imports = [
2022-12-07 22:21:07 +03:00
"${toString modulesPath}/virtualisation/qemu-vm.nix"
2022-10-06 00:43:34 +03:00
];
virtualisation = {
qemu.options = [ "-vga none" "-device virtio-vga-gl" "-display gtk,gl=on" ];
2022-12-07 22:21:07 +03:00
cores = 2;
memorySize = 4096;
msize = 65536;
2022-10-06 00:43:34 +03:00
diskSize = 20480;
2022-10-08 04:38:45 +03:00
diskImage = "/media/libvirt/vm-images/${config.device}.qcow2";
2022-10-06 00:43:34 +03:00
# resolution = { x = 1920; y = 1080; };
2022-12-07 22:21:07 +03:00
#useNixStoreImage = true;
2022-10-06 00:43:34 +03:00
writableStore = false;
};
}