forked from extern/nix-config
d9bbb2e267
This is convenient, although care should be taken to remove this mount if you don't want your home directory inside of the virtual machine.
26 lines
460 B
Nix
26 lines
460 B
Nix
{
|
|
virtualisation.vmVariant = {
|
|
virtualisation = {
|
|
memorySize = 8192;
|
|
cores = 4;
|
|
|
|
sharedDirectories = {
|
|
home = {
|
|
source = "$HOME";
|
|
target = "/mnt";
|
|
};
|
|
};
|
|
};
|
|
|
|
virtualisation.qemu.options = [
|
|
"-device virtio-vga-gl"
|
|
"-display sdl,gl=on,show-cursor=off"
|
|
"-audio pa,model=hda"
|
|
];
|
|
|
|
environment.sessionVariables = {
|
|
WLR_NO_HARDWARE_CURSORS = "1";
|
|
};
|
|
};
|
|
}
|