work on vm

This commit is contained in:
ChaotiCryptidz 2022-02-13 15:25:14 +00:00
parent 26190df018
commit 50ffa445da
2 changed files with 11 additions and 2 deletions

View file

@ -5,7 +5,7 @@
home.sessionVariables = {
XDG_CURRENT_DESKTOP = "sway";
XDG_SESSION_TYPE = "wayland";
WLR_DRM_DEVICES = "/dev/dri/card0";
#WLR_DRM_DEVICES = "/dev/dri/card0";
SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = 1;

View file

@ -1,4 +1,13 @@
_: {
{lib, inputs, ...}: {
imports = [
"${inputs.nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
];
users.users.root.password = "password";
users.users.chaos.password = "password";
home-manager.users.chaos.home.sessionVariables = {
WLR_RENDERER_ALLOW_SOFTWARE = "1";
};
services.getty.extraArgs = lib.mkForce [];
virtualisation.cores = 4;
virtualisation.qemu.options = ["-vga" "qxl"];
}