From f79f43c6176c12cfe5f3d4eb8449a2073480533c Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 1 Oct 2025 01:55:40 +0200 Subject: [PATCH] feat(hyprland): try to make it work for nvidia. --- modules/linux/home-manager/hyprland.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/linux/home-manager/hyprland.nix b/modules/linux/home-manager/hyprland.nix index 078c450..51443d2 100644 --- a/modules/linux/home-manager/hyprland.nix +++ b/modules/linux/home-manager/hyprland.nix @@ -129,12 +129,24 @@ in { "$menu" = "tofi"; "$terminal" = "foot"; + env = [ + "LIBVA_DRIVER_NAME,nvidia" + "__GLX_VENDOR_LIBRARY_NAME,nvidia" + # "WLR_NO_HARDWARE_CURSORS,1" + # " WLR_DRM_NO_ATOMIC,1" + "__GL_GSYNC_ALLOWED,1" + ]; + exec = [ # Fix laptop monitor getting turned on while my external monitor connected "hyprctl monitors | grep 'HDMI' && hyprctl keyword monitor 'eDP-1, disable'" "pkill waybar; waybar" # Kill waybar and start new instance because everytime hyprland restarts breaks waybar ]; + cursor = { + no_hardware_cursors = true; + }; + exec-once = [ "wl-paste --type text --watch cliphist store" # Stores only text data "wl-paste --type image --watch cliphist store" # Stores only image data @@ -174,7 +186,7 @@ in { }; misc = { - vrr = 1; + vrr = 2; }; input = {