mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Simplify this check
This commit is contained in:
@@ -12,17 +12,7 @@ NVIDIA="$(lspci | grep -i 'nvidia')"
|
|||||||
# --- GPU Detection ---
|
# --- GPU Detection ---
|
||||||
if [ -n "$NVIDIA" ]; then
|
if [ -n "$NVIDIA" ]; then
|
||||||
# Check which kernel is installed and set appropriate headers package
|
# Check which kernel is installed and set appropriate headers package
|
||||||
KERNEL_HEADERS="linux-headers" # Default
|
KERNEL_HEADERS="$(pacman -Qqs '^linux(-zen|-lts|-hardened)?$' | head -1)-headers"
|
||||||
if pacman -Q linux-zen &>/dev/null; then
|
|
||||||
KERNEL_HEADERS="linux-zen-headers"
|
|
||||||
elif pacman -Q linux-lts &>/dev/null; then
|
|
||||||
KERNEL_HEADERS="linux-lts-headers"
|
|
||||||
elif pacman -Q linux-hardened &>/dev/null; then
|
|
||||||
KERNEL_HEADERS="linux-hardened-headers"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# force package database refresh
|
|
||||||
sudo pacman -Syu --noconfirm
|
|
||||||
|
|
||||||
# Initial install packages
|
# Initial install packages
|
||||||
GENERAL_PACKAGES=(
|
GENERAL_PACKAGES=(
|
||||||
|
|||||||
Reference in New Issue
Block a user