Add omarchy-ane-dkms, the Apple Neural Engine driver

The package builds ane.ko and ane_t6021.ko with DKMS from a
joshuaswarren/omarchy-ane release. It installs the device-tree
overlays, the readiness check, the M2 opt-in tools and their pacman
hooks. aarch64 and edge only.

ane_t6021 stays blocked by /etc/modprobe.d/ane_t6021.conf until the
user opts in. Removal takes out the firmware and the opt-in line that
omarchy-ane-m2-enable wrote.

The watch follows published GitHub releases after 24 hours, on the
reviewed lane.
This commit is contained in:
Joshua Warren committed 2026-09-30 17:02:16 -05:00
1 parent 5a49a3fab5
commit 4d29b46a6c
3 files changed
+94

No files matched your search

@@ -0,0 +1,12 @@
# omarchy-ane-m2-enable writes these two files. pacman does not own them, so
# remove them with the package, as omarchy-ane-m2-enable --disable does.
post_remove() {
rm -f /usr/lib/firmware/apple/ane/t602x_ane0_fw_selene_rc4x.macho
rmdir /usr/lib/firmware/apple/ane 2>/dev/null || :
local opt_in=/etc/omarchy-platform/dtb-overlays.opt-in
if [[ -f $opt_in ]]; then
sed -i '/^ane-t6021$/d' "$opt_in"
[[ -s $opt_in ]] || rm -f "$opt_in"
fi
}