From fe8927b35151bb37eca125a7e14f0bf6496a868f Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sat, 27 Dec 2025 21:46:43 -0500 Subject: [PATCH] Simplify further --- install/config/hardware/nvidia.sh | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/install/config/hardware/nvidia.sh b/install/config/hardware/nvidia.sh index b2a3e053..a5214209 100644 --- a/install/config/hardware/nvidia.sh +++ b/install/config/hardware/nvidia.sh @@ -1,12 +1,3 @@ -# ============================================================================== -# Hyprland NVIDIA Setup Script for Arch Linux -# ============================================================================== -# This script automates the installation and configuration of NVIDIA drivers -# for use with Hyprland on Arch Linux, following the official Hyprland wiki. -# -# Author: https://github.com/Kn0ax -# -# ============================================================================== NVIDIA="$(lspci | grep -i 'nvidia')" # --- GPU Detection --- @@ -38,15 +29,12 @@ EOF MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) EOF - # Add NVIDIA environment variables to hyprland.conf - HYPRLAND_CONF="$HOME/.config/hypr/hyprland.conf" - if [ -f "$HYPRLAND_CONF" ]; then - cat >>"$HYPRLAND_CONF" <<'EOF' + # Add NVIDIA environment variables + cat >>$HOME/.config/hypr/envs.conf <<'EOF' -# NVIDIA environment variables +# NVIDIA env = NVD_BACKEND,direct env = LIBVA_DRIVER_NAME,nvidia env = __GLX_VENDOR_LIBRARY_NAME,nvidia EOF - fi fi