fix wayland
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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