phone: Improve virtualization support

Makes things snappier among other things.
This commit is contained in:
Donovan Glover 2024-06-15 13:49:38 -04:00
parent 3ce04d6ed3
commit af678f14d9
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -110,6 +110,27 @@ in
};
};
virtualisation.vmVariant = {
virtualisation = {
memorySize = 4096;
cores = 4;
sharedDirectories = {
tmp = {
source = "/tmp";
target = "/mnt";
};
};
qemu.options = [
"-device virtio-vga-gl"
"-display sdl,gl=on,show-cursor=off"
"-audio pa,model=hda"
"-full-screen"
];
};
};
powerManagement.enable = true;
zramSwap.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];