From 2448d00192cdc53bf19f0bd249d4c46e036d13c3 Mon Sep 17 00:00:00 2001 From: Victor Mignot Date: Thu, 28 Nov 2024 15:14:13 +0100 Subject: [PATCH] Use zink on Nvidia GPU --- .../workstation/home-manager/desktop/sway/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/workstation/home-manager/desktop/sway/default.nix b/modules/workstation/home-manager/desktop/sway/default.nix index 7b8ade5..39fa29c 100644 --- a/modules/workstation/home-manager/desktop/sway/default.nix +++ b/modules/workstation/home-manager/desktop/sway/default.nix @@ -9,7 +9,14 @@ with lib; let 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 { options = { name = mkOption { type = types.str; };