Add migration to backfill Mesa Vulkan driver for pre-vulkan.sh installs
What
Adds a migration that installs the Mesa Vulkan driver (vulkan-intel / vulkan-radeon / vulkan-asahi) on systems that were set up before install/config/hardware/vulkan.sh was added (commit 694eb8c6, 2026-02-20).
Fixes #6089.
Why
install/ scripts only run once, at initial setup. vulkan.sh was introduced as an install-time step but no migration was shipped, so it never reaches pre-existing machines. Intel/AMD systems installed before that date have no Mesa Vulkan ICD to this day.
On hybrid (Optimus) laptops the impact is user-visible: NVIDIA Vulkan ships via nvidia-utils, so the discrete GPU becomes the only Vulkan device. mpv (default vo=gpu-next/Vulkan) then renders on the dGPU and cross-presents to the iGPU-driven compositor, which stalls ("Application Not Responding"). Installing vulkan-intel restored the iGPU as a Vulkan device and fixed it.
How
The migration mirrors the detection in vulkan.sh and relies on omarchy-pkg-add, which is idempotent (pacman -S --needed) — so it is a no-op on systems that already have the driver (e.g. fresh installs). The migration timestamp (1780929365) is derived from the current dev HEAD commit, per omarchy-dev-add-migration convention, and sorts after the latest existing migration.
Testing
Verified on an affected machine (Omarchy 3.8.2, Intel UHD 630 + NVIDIA GTX 1650, installed 2026-02-18): vulkan-intel was absent, the dGPU was the only Vulkan device, and mpv froze. After installing vulkan-intel, both GPUs appear as Vulkan devices and mpv renders on Intel without stalling.
Thanks for the review. Addressing the automated feedback:
- Apple/Asahi via
lspci— good catch, and correct: Apple Silicon GPUs aren't PCI devices so that branch never fires. It was inherited verbatim frominstall/config/hardware/vulkan.sh. Since a backfill should only do what reliably works, I've scoped the migration to Intel/AMD and dropped the Apple entry rather than add Asahi platform detection (out of scope for this fix). The samelspcilimitation invulkan.shitself is probably worth a separate look. - Shebang / bashisms — intentional, matches repo convention: every script in
migrations/is shebang-less andbin/omarchy-migrateruns them viabash "$file", sodeclare -A/arrays are safe.vulkan.shuses the same construct. - Leading indentation on line 1 — the committed file has
echoat column 0 (no leading whitespace); appears to be a false positive.
Closing in favor of the expanded Vulkan backfill implementation in #6199.