From 96b410a358be1c8233ef4e05e0b52d9cebf96c24 Mon Sep 17 00:00:00 2001 From: DashieTM Date: Sun, 25 Aug 2024 12:01:27 +0200 Subject: [PATCH] Hyprland nvidia specific configs --- modules/programs/hyprland/hyprland.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/programs/hyprland/hyprland.nix b/modules/programs/hyprland/hyprland.nix index 334136b..42220e0 100644 --- a/modules/programs/hyprland/hyprland.nix +++ b/modules/programs/hyprland/hyprland.nix @@ -251,7 +251,7 @@ cursor = { # conversion seems to be borked right now, i want a smooth bibata :( enable_hyprcursor = false; - # no_hardware_cursors = true; + no_hardware_cursors = lib.mkIf config.mods.nvidia.enable true; # no_break_fs_vrr = true; }; @@ -279,6 +279,12 @@ ''EDITOR,"neovide --novsync --nofork"'' (lib.mkIf config.mods.hyprland.no_atomic "WLR_DRM_NO_ATOMIC,1") "GTK_USE_PORTAL, 1" + + (lib.mkIf config.mods.nvidia.enable "LIBVA_DRIVER_NAME,nvidia") + (lib.mkIf config.mods.nvidia.enable "XDG_SESSION_TYPE,wayland") + (lib.mkIf config.mods.nvidia.enable "GBM_BACKEND,nvidia-drm") + (lib.mkIf config.mods.nvidia.enable + "__GLX_VENDOR_LIBRARY_NAME,nvidia") ]; layerrule = [