Use zink on Nvidia GPU

This commit is contained in:
Victor Mignot 2024-11-28 13:27:20 +01:00
parent c1ed8b8347
commit 88159d59ed
No known key found for this signature in database
GPG key ID: 5E7F2CE1BEAFED3D

View file

@ -9,7 +9,6 @@
with lib;
let
isQwerty = keymap == "us";
wlrRendererLine = if isNvidiaGpu then "export WLR_RENDERER=vulkan" else "";
monitorModule = types.submodule {
options = {
name = mkOption { type = types.str; };
@ -298,7 +297,6 @@ in
xwayland = true;
extraSessionCommands = ''
${wlrRendererLine}
export WLR_NO_HARDWARE_CURSORS=1
export XDG_CURRENT_DESKTOP=sway
export _JAVA_AWT_WM_NONREPARENTING=1
@ -308,6 +306,7 @@ in
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export MOZ_ENABLE_WAYLAND=1
export SDL_VIDEODRIVER=wayland
export NOUVEAU_USE_ZINK=1
'';
};
};