fix wayland

This commit is contained in:
Kopatz
2024-03-17 12:02:20 +01:00
parent a2a6918f1f
commit 9f3c9fe588
4 changed files with 25 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
xkb.variant = "";
enable = true;
displayManager.sddm.enable = true;
displayManager.sddm.wayland.enable = true;
};
services.desktopManager.plasma6.enable = true;
}

View File

@@ -0,0 +1,21 @@
{
environment.sessionVariables = {
# For shared clipboard with Xwayland apps
MOZ_DBUS_REMOTE = "1";
KITTY_ENABLE_WAYLAND = "1";
_JAVA_AWT_WM_NONREPARENTING = "1";
MOZ_ENABLE_WAYLAND = "1";
WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1";
LIBVA_DRIVER_NAME = "nvidia";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
GBM_BACKEND = "nvidia-drm";
XDG_SESSION_TYPE = "wayland";
# Can break some native games
SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland;xcb";
ELECTRON_OZONE_PLATFORM_HINT = "wayland";
};
}