mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-04 20:09:42 +01:00
phone: Improve virtualization support
Makes things snappier among other things.
This commit is contained in:
parent
3ce04d6ed3
commit
af678f14d9
@ -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;
|
powerManagement.enable = true;
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user