From 2349c35b13ed3e5816e550afa27108d2dd81e368 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Mon, 2 Sep 2024 20:09:29 -0700 Subject: [PATCH] More nvidia specific wayland settings Even though I'm kind of giving up on nvidia+wayland emotionally right now --- modules/window_managers/hyprland/default.nix | 5 ----- modules/window_managers/hyprland/z790prors.nix | 13 ++++++++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/modules/window_managers/hyprland/default.nix b/modules/window_managers/hyprland/default.nix index 10c60cb..a0d75f0 100644 --- a/modules/window_managers/hyprland/default.nix +++ b/modules/window_managers/hyprland/default.nix @@ -19,11 +19,6 @@ "dunst" ]; - env = [ - "XCURSOR_SIZE,24" - "HYPRCURSOR_SIZE,24" - ]; - xwayland = { force_zero_scaling = true; }; diff --git a/modules/window_managers/hyprland/z790prors.nix b/modules/window_managers/hyprland/z790prors.nix index 4d18724..26e8adb 100644 --- a/modules/window_managers/hyprland/z790prors.nix +++ b/modules/window_managers/hyprland/z790prors.nix @@ -1,5 +1,16 @@ { config, lib, pkgs, ... }: { - wayland.windowManager.hyprland.settings.monitor = "DP-1,3440x1440@164.90,0x0,1.33333,vrr,1,bitdepth,10"; + wayland.windowManager.hyprland.settings.monitor = "DP-1,3440x1440@164.90,0x0,1.33333,vrr,1"; + wayland.windowManager.hyprland.settings.env = [ + "LIBVA_DRIVER_NAME,nvidia" + "XDG_SESSION_TYPE,wayland" + "GBM_BACKEND,nvidia-drm" + "__GLX_VENDOR_LIBRARY_NAME,nvidia" + "NVD_BACKEND,direct" + "ELECTRON_OZONE_PLATFORM_HINT,auto" + "NIXOS_OZONE_WL,1" + ]; + + wayland.windowManager.hyprland.settings.cursor.no_hardware_cursors = true; }