1
0
forked from extern/nix-config
donovanglover-nix-config/modules/virtualization.nix
Donovan Glover d34ead9699
meta: Share directories with virtual machines
This *works*, and it's possible to edit files in one virtual machine
while having those files instantly be updated in all other virtual
machines. Note that the host will also have access to the files, which
ultimately means that directory sharing is quite useful (and convenient).
2023-06-18 10:44:44 -04:00

25 lines
434 B
Nix

{
virtualisation = {
memorySize = 8192;
cores = 4;
sharedDirectories = {
testing = {
source = "/home/user/containers/testing";
target = "/mnt";
};
};
};
virtualisation.qemu.options = [
"-device virtio-vga-gl"
"-display sdl,gl=on,show-cursor=off"
"-full-screen"
"-audio pa,model=hda"
];
environment.sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1";
};
}