Use zink on Nvidia GPU

This commit is contained in:
Victor Mignot 2024-11-28 15:14:13 +01:00
parent c1ed8b8347
commit 2448d00192
No known key found for this signature in database
GPG key ID: 5E7F2CE1BEAFED3D

View file

@ -9,7 +9,14 @@
with lib; with lib;
let let
isQwerty = keymap == "us"; isQwerty = keymap == "us";
wlrRendererLine = if isNvidiaGpu then "export WLR_RENDERER=vulkan" else ""; wlrRendererLine =
if isNvidiaGpu then
''
export MESA_LOADER_DRIVER_OVERRIDE=zink
export NOUVEAU_USE_ZINK=1
''
else
"";
monitorModule = types.submodule { monitorModule = types.submodule {
options = { options = {
name = mkOption { type = types.str; }; name = mkOption { type = types.str; };