feat(devShell): Add QEMU_OPTS_WL env var

This var has some nice defaults if you are running a Wayland host and
can spare 4vCPU cores and 2GiB of RAM.

Also improve README's documentation.
This commit is contained in:
Jalil David Salamé Messina 2024-03-26 20:59:36 +01:00
parent 413fa9fb39
commit f10bfb3e43
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 16 additions and 6 deletions

View file

@ -183,6 +183,7 @@
default = pkgs.mkShell {
inherit (self.checks.${system}.pre-commit-check) shellHook;
buildInputs = with pkgs; [ just self.packages.${system}.nvim ];
QEMU_OPTS_WL = "-smp 4 -device virtio-gpu-rutabaga,gfxstream-vulkan=on,cross-domain=on,hostmem=2G,wsi=headless";
};
});
};