Skip to content

Take the T2 Mac packages from the Omarchy repository - #19168

Merged
emirb merged 1 commit into
quattrofrom
t2/own-packages
Nov 16, 2026
Merged

emirb merged 1 commit into
quattrofrom
t2/own-packages

Conversation

@emirb

@emirb emirb commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

What changes

T2 installs add an extra pacman repository for linux-t2 and the T2 support packages. Omarchy now builds all five in [omarchy] (omacom/omarchy-pkgs#2911), and they are on every channel, so that repository is no longer needed.

The installer stops adding it. install/hardware/pacman.sh only did that, so it and its two callers go.

A migration moves existing T2 installs over, once per machine. It reinstalls every installed T2 package as omarchy/<name> while the old repository is still configured. Then it drops that repository's section, reading headers the way pacman does, and checks the result with pacman-conf before replacing /etc/pacman.conf.

If [omarchy] does not serve a package yet, or the reinstall fails, the migration changes nothing and stays pending. It keeps the previous file as /etc/pacman.conf.bak-t2, and a marker in /var/lib/omarchy/migrations makes other users' runs a no-op.

Refs #9461, which takes a broader approach to the same repository.

Verification

QEMU VMs reporting the T2 PCI ID (106b:1802) and Apple SMBIOS, installed from the 4.5.0 ISO with LUKS:

  • With the previous T2 builds installed, the migration reinstalls all five from [omarchy] and removes the section. The machine then boots its kernel through Limine.
  • A failed package download leaves pacman.conf and the packages unchanged, and the migration pending.
  • With [omarchy] lacking the packages, it exits 1 and pacman.conf stays byte-identical.
  • A second run, and a run as a second user, change nothing.
  • Afterwards no T2 package is foreign, so yay -Sua has nothing to look up for them.

The section removal matches pacman-conf on CRLF, indented, last, middle and Include fixtures. test/shell.d/pacman-templates-test.sh (11 of 11) and test/shell.d/image-deferred-hardware-test.sh pass. Not checked on real T2 hardware.

Screenshots

No visible change: this changes pacman configuration on T2 Macs only.

Omarchy now builds linux-t2, its headers, apple-t2-audio-config,
apple-bcm-firmware-fetcher and t2fanrd in its own repository. T2
installs no longer need the extra repository the installer added for
them, so the installer stops adding it.

The migration moves existing T2 installs over once per machine. It
reinstalls every installed T2 package from [omarchy] by name while the
old repository is still configured, then drops that repository's
section and checks the result with pacman-conf. If [omarchy] does not
serve a package yet, or the reinstall fails, it changes nothing and
stays pending.
@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Moves T2 Mac packages to Omarchy’s package repository.

  • Existing T2 Macs move their packages to Omarchy's repository.
  • New T2 installs no longer add arch-mact2.

No actionable issues found.

Reviews (3) · Last reviewed commit: "Take the T2 Mac packages from the Omarch..." · Reviewed by Greptile

@emirb
emirb merged commit 3b36b9e into quattro Nov 16, 2026
3 checks passed
@emirb
emirb deleted the t2/own-packages branch November 16, 2026 20:39
@emirb emirb added this to the 4.6.0 milestone Nov 16, 2026
mark-groves added a commit to mark-groves/omarchy that referenced this pull request Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant