mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-07 12:40:55 +02:00
Remove legacy online installer entrypoints, collapse migrations for 4.0, and move setup responsibilities into target-side system, hardware, and user commands.
21 lines
464 B
Bash
21 lines
464 B
Bash
# Install Vulkan drivers matching detected GPU hardware
|
|
# (NVIDIA Vulkan is handled by nvidia.sh via nvidia-utils)
|
|
|
|
declare -A VULKAN_DRIVERS=(
|
|
[Intel]=vulkan-intel
|
|
[AMD]=vulkan-radeon
|
|
[Apple]=vulkan-asahi
|
|
)
|
|
|
|
PACKAGES=()
|
|
|
|
for vendor in "${!VULKAN_DRIVERS[@]}"; do
|
|
if lspci | grep -iE "(VGA|Display).*$vendor" > /dev/null; then
|
|
PACKAGES+=("${VULKAN_DRIVERS[$vendor]}")
|
|
fi
|
|
done
|
|
|
|
if (( ${#PACKAGES[@]} > 0 )); then
|
|
omarchy-pkg-add "${PACKAGES[@]}"
|
|
fi
|