From c434816d83c517515377c4f3af3470aff3d21cea Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 19 Aug 2024 22:20:59 +0200 Subject: [PATCH] Update --- home/system/hyprland/default.nix | 11 +---------- hosts/modules/nvidia.nix | 4 +++- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/home/system/hyprland/default.nix b/home/system/hyprland/default.nix index 46af4bd..d170b67 100644 --- a/home/system/hyprland/default.nix +++ b/home/system/hyprland/default.nix @@ -41,15 +41,7 @@ "${pkgs.bitwarden}/bin/bitwarden" ]; - monitor = [ - "eDP-2,highres,0x0,1" - # "DP-9,highrr,2560x0,1" - ",prefered,auto,1" - #"desc:,2560x1440@240.0,0x0,1.0" - #"desc:,2560x1440@60.0,645x4362,1.0" - # "desc:AOC U34G2G1 0x00000E06,3440x1440@59.97,2560x0,1.0" - # ",disable" - ]; + monitor = [ "eDP-2,highres,0x0,1" ",prefered,auto,1" ]; bind = [ "$mod, RETURN, exec, ${pkgs.kitty}/bin/kitty" # Kitty @@ -117,7 +109,6 @@ "ELECTRON_OZONE_PLATFORM_HINT,auto" "GTK_THEME,FlatColor:dark" "GTK2_RC_FILES,/home/hadi/.local/share/themes/FlatColor/gtk-2.0/gtkrc" - "NVD_BACKEND,direct" ]; cursor = { no_hardware_cursors = true; }; diff --git a/hosts/modules/nvidia.nix b/hosts/modules/nvidia.nix index 987200e..3f6bdbc 100644 --- a/hosts/modules/nvidia.nix +++ b/hosts/modules/nvidia.nix @@ -13,9 +13,10 @@ in { "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; environment.variables = { - GBM_BACKEND = "nvidia-drm"; + # GBM_BACKEND = "nvidia-drm"; # If crash in firefox, remove this line LIBVA_DRIVER_NAME = "nvidia"; # hardware acceleration __GLX_VENDOR_LIBRARY_NAME = "nvidia"; + NVD_BACKEND = "direct"; }; nixpkgs.config = { nvidia.acceptLicense = true; @@ -45,6 +46,7 @@ in { vaapiVdpau libvdpau-va-gl mesa + egl-wayland ]; }; };