Skip to content

Commit

Permalink
phone: Improve virtualization support
Browse files Browse the repository at this point in the history
Makes things snappier among other things.
  • Loading branch information
donovanglover committed Jun 15, 2024
1 parent 3ce04d6 commit af678f1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions phone/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand Down

0 comments on commit af678f1

Please sign in to comment.