work on vm
This commit is contained in:
parent
26190df018
commit
50ffa445da
|
@ -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;
|
||||
|
|
|
@ -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"];
|
||||
}
|
Loading…
Reference in a new issue