Install matching kernel headers for every DKMS setup
This commit is contained in:
1 parent
d237995b3b
commit
662051ecde
13 files changed
+138
-13
No files matched your search
@@ -1,8 +1,4 @@
|
||||
if lspci | grep -qi 'nvidia'; then
|
||||
# Check which kernel is installed and set appropriate headers package
|
||||
KERNEL_PACKAGE=$(pacman -Qqs '^linux(-zen|-lts|-hardened|-t2|-ptl|-omarchy(-bore|-ptl-novrr-mm)?)?$' | head -1 || true)
|
||||
[[ -n $KERNEL_PACKAGE ]] && omarchy-pkg-add "$KERNEL_PACKAGE-headers"
|
||||
|
||||
if omarchy-hw-nvidia-gsp; then
|
||||
PACKAGES=(nvidia-open-dkms nvidia-utils lib32-nvidia-utils libva-nvidia-driver)
|
||||
elif omarchy-hw-nvidia-without-gsp; then
|
||||
@@ -15,6 +11,7 @@ if lspci | grep -qi 'nvidia'; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
omarchy-pkg-add-kernel-headers
|
||||
omarchy-pkg-add "${PACKAGES[@]}"
|
||||
|
||||
# Per-session Hyprland NVIDIA env vars are handled by default/hypr/nvidia.lua.
|
||||
|
||||
Reference in new issue
Block a user