forked from extern/nix-config
d34ead9699
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).
25 lines
434 B
Nix
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";
|
|
};
|
|
}
|