18 lines
465 B
Nix
18 lines
465 B
Nix
{ modulesPath, config, ... }: {
|
|
imports = [
|
|
"${toString modulesPath}/virtualisation/qemu-vm.nix"
|
|
];
|
|
virtualisation = {
|
|
qemu.options = [ "-vga none" "-device virtio-vga-gl" "-display gtk,gl=on" ];
|
|
cores = 2;
|
|
memorySize = 4096;
|
|
msize = 65536;
|
|
diskSize = 20480;
|
|
diskImage = "/media/libvirt/vm-images/${config.device}.qcow2";
|
|
# resolution = { x = 1920; y = 1080; };
|
|
|
|
#useNixStoreImage = true;
|
|
writableStore = false;
|
|
};
|
|
}
|