From 81ca8f2403675797fc2b226c6be4a78f42f14074 Mon Sep 17 00:00:00 2001 From: Nickolaj Jepsen Date: Wed, 12 Mar 2025 16:41:46 +0100 Subject: [PATCH] fix: use hyprland nvidia override for desktop --- hosts/desktop/nvidia.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/desktop/nvidia.nix b/hosts/desktop/nvidia.nix index ec5d99e..35c98d3 100644 --- a/hosts/desktop/nvidia.nix +++ b/hosts/desktop/nvidia.nix @@ -19,4 +19,14 @@ # To fix https://forums.developer.nvidia.com/t/ubuntu-24-04-unable-to-change-power-state-from-d3cold-to-d0-device-inaccessible/304459 boot.kernelPackages = pkgs.linuxPackages_6_12; + + fireproof.home-manager.wayland.windowManager.hyprland.settings = { + env = [ + "LIBVA_DRIVER_NAME,nvidia" + "__GLX_VENDOR_LIBRARY_NAME,nvidia" + "NVD_BACKEND,direct" + ]; + + cursor.no_hardware_cursors = true; + }; }