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

@@ -97,6 +97,7 @@
### User specific ###
./users/kopatz
### System modules ###
./modules/graphical/wayland.nix
./modules/graphical/plasma.nix
#./modules/graphical/hyprland.nix
./modules/graphical/emulators.nix

View File

@@ -9,7 +9,8 @@
update = "sudo nixos-rebuild switch";
updateOffline = "sudo nixos-rebuild switch --option substitute false";
checkTime = "(cd ~/Nextcloud/work_drive/TS && nix run)";
ssh="TERM=xterm-256color ssh";
checkWaylandWindowsKDE = "qdbus org.kde.KWin /KWin org.kde.KWin.showDebugConsole";
ssh = "TERM=xterm-256color ssh";
};
oh-my-zsh = {
enable = true;

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";
};
}