Repository navigation
Apply the etc-overrides on Apple Silicon, keeping only its os-release - #1857
Conversation
omarchy-settings returned early on Apple Silicon after linking /etc/os-release to Arch Linux ARM's, which also skipped every override below it. Macs were left with: - the stock Arch /etc/skel/.bashrc, so new users never source default/bash/rc and get none of Omarchy's aliases, functions or env; - nsswitch.conf without mdns_minimal, so .local names (printers, other hosts) don't resolve, though avahi and nss-mdns are installed; - PAM's default faillock, locking out after 3 failed passwords, not 10; - no cups-browsed.conf hardening. None of these is part of the distribution's identity, and omarchy-mac manages none of them. Keep only the os-release symlink Mac-specific, since Asahi's tooling reports the distro from it, and apply the rest everywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The changes reach several machine settings on Apple Silicon through both settings packages. The PR appears safe to merge, with a non-blocking request to retain regression coverage. Findings
SummaryBoth settings packages now apply the shared overrides on Apple Silicon instead of returning early.
Acknowledged scope:
|
| if _apple_silicon; then | ||
| if [[ -f /usr/lib/os-release ]]; then | ||
| rm -f /etc/os-release | ||
| ln -s ../usr/lib/os-release /etc/os-release | ||
| fi | ||
| else | ||
| rm -f /etc/os-release | ||
| cp -f /usr/share/omarchy/etc-overrides/os-release /etc/os-release | ||
| chmod 0644 /etc/os-release | ||
| fi |
There was a problem hiding this comment.
Mac override coverage is missing
The existing lifecycle test replaces _etc_overrides_apply() with a no-op, so it cannot catch the Mac early return coming back. Keep the fake-root check as a regression test for both settings packages. Cover both platform branches, file permissions, and cups-browsed.conf present and absent.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Publish succeeded → livePackages: omarchy-settings (x86_64, already published, skipped); omarchy-settings (aarch64, already published, skipped); omarchy-settings-dev (x86_64, already published, skipped); omarchy-settings-dev (aarch64, already published, skipped) Nothing to publish: already at master's version everywhere. Some planned slots did not run because an earlier slot failed. |
_etc_overrides_apply()returned early on Apple Silicon after linking/etc/os-releaseto Arch Linux ARM's. That also skipped every override below it, so Macs were left with:/etc/skel/.bashrc: the stock Arch one, so new users never sourcedefault/bash/rcand get none of Omarchy's aliases, functions or env./etc/nsswitch.conf: nomdns_minimal, so.localnames (printers, other hosts) don't resolve, though avahi and nss-mdns are installed and resolved's mDNS is off./etc/security/faillock.conf: PAM's default, locking out after 3 failed passwords instead of 10./etc/cups/cups-browsed.conf: no hardening once cups-browsed is installed.None of these is part of the distribution's identity, and
omarchy-macmanages none of them. This keeps only the os-release symlink Mac-specific, since Asahi's tooling (asahi-diagnose) reports the distro from it, and applies everything else on every platform.plymouthd.confis included too; on the Mac I checked it already matched the override.The same change is made in
omarchy-settingsandomarchy-settings-dev.Testing
_etc_overrides_apply()against a fake root with_apple_siliconstubbed both ways. On Apple Silicon, os-release stays the../usr/lib/os-releasesymlink and nsswitch, faillock, skel bashrc and plymouth match the overrides. On other platforms, os-release is Omarchy's and the rest match too. cups-browsed wasn't covered by that run.tests/passwordless-package-lifecycle.py(11/11) andtests/passwordless-package-files.shpass. Both stub out_etc_overrides_apply, so they don't exercise this change.omarchy dev pkg test.Follow-up
Existing Mac users already have the stock
~/.bashrcin their home directory, and a fixed skel won't change that. That needs a migration in the omarchy repo.🤖 Generated with Claude Code