Install Scripts¶
Read this before working under install/ or on the system/user setup commands.
The ISO owns installation orchestration. This repo ships target-side setup commands and reusable setup leaves:
bin/omarchy-apply-systemruns root-owned system setup during ISO finalization.bin/omarchy-apply-hardwareruns idempotent hardware-specific setup and is called byomarchy-apply-system.bin/omarchy-provision-userruns the per-user runtime finalization (skill symlinks, xdg-user-dirs, mime defaults,install/user/all.sh). Shipped user defaults are seeded by/etc/skelfromomarchy-settings, not by this command.bin/omarchy-reinstall-configsis the explicit destructive resync of those defaults into an existing user's$HOME.- leaf scripts under
install/are sourced byrun_logged $OMARCHY_INSTALL/path/to/script.shand intentionally do not have shebangs. - avoid
exitin sourced setup scripts unless intentionally aborting setup. - use
$OMARCHY_INSTALLand$OMARCHY_PATHinstead of hard-coded Omarchy paths. - keep root-scoped hardware setup under
install/hardware/and orchestrate it throughinstall/hardware/all.sh. - in an image build every
run_loggedleaf ininstall/hardware/all.shis queued and runs on the machine's first boot instead (bin/omarchy-provision-hardware, seedocs/file-layout.md), possibly offline, using packages already in the image, and before any user exists; keep those leaves idempotent and put nothing butrun_loggedlines inall.sh. - gate platform-specific setup on a predicate built on
omarchy-hw-platform(omarchy-hw-aarch64-apple), not onuname -m; architecture checks (omarchy-hw-x86,omarchy-hw-aarch64) are only for ABI, binary availability or a repository's$arch. Platform names and where platform code lives are in the Platforms section ofAGENTS.md. - keep every per-user setup leaf under
install/user/(includinginstall/user/hardware/andinstall/user/first-run/) so it is clear what must run for each user. - The base install supplies matching kernel headers before hardware setup. DKMS installers should install their driver packages and assume the headers exist.
- prefer helper commands for package and command checks where available.
Raw command -v, pacman, and pacman-key are acceptable in package-helper contexts where direct package-manager behavior is the point of the script.