fix wayland
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
xkb.variant = "";
|
||||
enable = true;
|
||||
displayManager.sddm.enable = true;
|
||||
displayManager.sddm.wayland.enable = true;
|
||||
};
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
}
|
||||
|
||||
21
modules/graphical/wayland.nix
Normal file
21
modules/graphical/wayland.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user