nix-config/modules/virtualization.nix
Donovan Glover d9bbb2e267
virtualization: Mount home directory
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.
2023-07-11 07:46:28 -04:00

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";
};
};
}