Introducing a new way to review your PRs.

Read the announcement

omacom / omarchy

Beautiful, Modern & Opinionated Linux

View on GitHub

29 documents · Updated Nov 23, 2026

docs / install-stages-and-package-sets

Install stages and package sets

Omarchy turns an installed base system into a usable desktop through ordered system and user stages. The stages set system policy, adapt the machine to its hardware, prepare login, finish package setup, and then prepare the target user's home and session. Package manifests provide the common desktop set and the platform additions needed by those stages.

Stage sequence

The install flow separates root-owned system work from user-owned setup. The system path runs config, hardware, login, and post-install stages in order. User finalization runs for the target account and can run again during first login.

This diagram shows how an installed target becomes a configured Omarchy session.

flowchart LR
    A[Installed target and package set] --> B[Config stage]
    B --> C[Hardware stage]
    C --> D[Login stage]
    D --> E[Post-install stage]
    E --> F[User stage]
    F --> G[First-login setup]

The system stages are applied by omarchy-apply-system. Hardware setup is part of that path, so normal finalization cannot skip it. Deferred provisioning uses the same system stages without a user and records work for the account that will be created later.

Config stage

The config stage gives the installed system its shared Omarchy behavior. It starts package trust setup, applies system policy, selects any region-specific session environment, and enables services before hardware and login work run.

Its main responsibilities are:

  • Start the machine's package-keyring state for the later post-install handoff.
  • Set desktop, browser, lock-screen, SSH, Docker, Snapper, locale, language, region, and firewall policy.
  • Enable core services for the next boot, including networking, printing, the display manager, power profiles, container access, and shutdown support.

The locale step repairs only an unset or stock C/POSIX locale. A language marker from the install media can also define a valid system locale. The matching user language remains a per-user default and does not replace a choice already made by that user. Region settings add an environment file only when the selected region provides one.

References: install/…/all.sh• L1-14 install/…/pacman-keyring.sh• L1-4 install/…/locale.sh• L13-50 install/…/language.sh• L1-13 install/…/region.sh• L1-8 install/…/enable-services.sh• L1-20 bin/omarchy-apply-system• L80-100

Hardware stage

The hardware stage detects the target machine and applies only the support that matches it. It covers shared device behavior and model-specific changes for graphics, firmware, power, networking, audio, cameras, input, boot, and early unlock.

Hardware support has two linked parts:

  • Package availability supplies kernels, firmware, drivers, and device tools before network access is ready.
  • Hardware setup applies matching system changes and rebuilds related boot or device state when needed.

The stage is safe to run on different machines because unmatched rules leave the system unchanged. It can also run again after hardware package changes or during diagnosis. Platform setup runs last so it sees the completed shared hardware state. Image builds defer work that needs the real machine or its network until first boot.

The stage also handles special resource, graphics, and boot needs. Integrated graphics can reserve more system memory for workloads that share memory with the GPU. NVIDIA, Intel, AMD, Apple, and Qualcomm systems receive matching graphics support. Model rules can also prepare display and keyboard access at disk unlock, repair camera or display behavior, and restore device drivers around hibernation. Platform-specific rules remain guarded so they do not change unrelated machines.

References: bin/omarchy-apply-hardware• L3-22 bin/omarchy-apply-hardware• L54-75 install/…/all.sh• L1-18 install/…/all.sh• L59-80 install/…/all.sh• L82-97 install/…/gpu-memory.sh• L1-4 install/…/nvidia.sh• L4-43 install/…/vulkan.sh• L1-27 install/…/fix-facetimehd.sh• L1-31 install/…/hamoa-display.sh• L1-45 install/…/yoga-slim7x.sh• L1-95 install/…/yoga-slim7x-hibernate.sh• L1-159 install/…/surface-laptop-7.sh• L1-74 install/…/galaxy-book4-edge-14.sh• L1-55 install/…/fix-hp-zbook-ultra-g3a-display.sh• L1-20 install/…/thermald.sh• L1-13 install/…/platform-setup.sh• L1-13 install/…/initramfs.sh• L1-48 install/…/dtb-uki.sh• L1-20 install/…/surface-pro-11.sh• L1-119 install/…/n1x.sh• L1-16

Login stage

The login stage prepares the graphical login boundary. It aligns the display manager's login and session behavior with Omarchy's authentication and keyring model.

This stage runs after system and hardware setup and before the final post-install pass. Its result is a login service that can start the configured desktop without creating a conflicting password-based keyring flow.

References: bin/omarchy-apply-system• L91-100 install/…/all.sh• L1 install/…/sddm.sh• L1-7

Post-install stage

The post-install stage completes the target package system after offline package installation ends. It restores the target package sources, prepares platform package trust, applies package-owned system behavior, and refreshes device rules.

Package restoration selects a channel for the target platform. If the requested channel has no template, the stage uses the platform's default channel. Non-Apple aarch64 targets receive the Arch Linux ARM keyring before their first signed sync. Image builds defer creation of that keyring until each machine's first boot.

The stage is the final root-side pass. The local file-index step is no longer wired into this stage, so changes to that behavior belong to its separate lifecycle.

References: install/…/all.sh• L1-2 install/…/pacman.sh• L1-45 install/…/udev.sh• L1-3 bin/omarchy-apply-system• L99-102

User stage

The user stage gives the target account the home-directory and session setup that root-owned stages cannot complete. It prepares user folders and links, applies user-level hardware and desktop changes, seeds language and input settings, selects a default theme, and refreshes the command-line tool environment.

User finalization is separate from root work because it needs the real user's home, permissions, and session context. It is normally idempotent through a per-user completion marker. A forced run refreshes the setup. Image builds defer platform user setup because the build host is not the machine that will use the image.

Qualcomm user setup completes the Snapdragon desktop path. It enables camera use for Chromium and video decoding in Chromium, while the helpers leave other machines unchanged. Virtual machines receive a desktop performance adjustment that disables costly effects until the user restores them.

The user flow has two related moments:

  • User finalization applies durable home and runtime setup.
  • First-login setup enables user services in the live session and runs network-dependent setup after NetworkManager reports its initial result. It can invite the user to choose an agent when no default agent exists. It records success only after all required steps finish, so a failed setup can retry at the next login.

References: bin/omarchy-provision-user• L1-23 bin/omarchy-provision-user• L56-67 bin/omarchy-provision-user• L106-120 install/…/all.sh• L1-20 install/…/language.sh• L1-7 install/…/video-decode.sh• L1-3 install/…/camera.sh• L1-3 install/…/theme.sh• L1-17 install/…/mise.sh• L1-4 install/…/enable-user-units.sh• L1-47 install/…/setup-agent.hook• L1-12 install/…/wifi.sh• L1-30 bin/omarchy-provision-first-run• L39-49 bin/omarchy-provision-first-run• L71-106

Package manifests

The package manifests define the package supply for the install system. The ISO builder uses them to build the offline source. Platform selection then composes a common set with additions for the target architecture and machine family.

Base package set

The base set is the common Omarchy desktop set installed by the ISO. It supplies the desktop, login manager, network stack, command-line tools, media and office tools, fonts, input methods, screensaver, dictation support, and Omarchy package components used by the stages. It also carries the default desktop applications and theme assets that make the installed session usable without a later package fetch.

It also supplies mise-bin, which the user stage uses to refresh system and user command shims. The base set uses Omarchy's power-profile service because the stock service does not provide working profiles on ARM laptops. This makes power management part of the common package contract.

References: install/omarchy-base.packages• L1-3 install/omarchy-base.packages• L45-59 install/omarchy-base.packages• L103-114 install/omarchy-base.packages• L136-176

Platform package sets

Platform package sets keep architecture and machine-family support separate from the common desktop set. They let the same stages serve different platforms without installing every kernel, firmware package, and driver on every machine.

Package setPurpose
omarchy-aarch64.packagesAdds support shared by all aarch64 platforms, including zram and PipeWire media integration.
omarchy-aarch64-apple.packagesAdds Apple Silicon runtime, boot, graphics, media, and screen-recording support.
omarchy-aarch64-qualcomm.packagesAdds Snapdragon firmware, vendor firmware extraction, device-tree image tools, Adreno graphics, and camera media support.
omarchy-aarch64-n1x.packagesAdds N1x kernels, NVIDIA graphics and video support, container support, and the hardware probe used by N1x setup.
omarchy-aarch64-gb10.packagesAdds GB10 graphics, container, RDMA, and profiling support.
omarchy-x86_64-only.packagesIdentifies base packages that aarch64 targets must omit when no matching build exists.
omarchy-other.packagesKeeps shared, optional, and model-specific packages available to the ISO and hardware paths.

The resolver maps each target to the base set, the shared aarch64 set when needed, and one machine-family set. It removes x86_64-only packages from aarch64 results. The other set keeps packages available before network access, including board support for Surface Pro 11 and Acer Aspire 16 AI, Qualcomm Wi-Fi fallback data, camera and media support, graphics drivers, and model-specific audio packages.

References: bin/omarchy-pkg-defaults• L1-4 bin/omarchy-pkg-defaults• L22-53 install/omarchy-aarch64-qualcomm.packages• L1-17 install/omarchy-other.packages• L1-113 install/omarchy-x86_64-only.packages• L1-2

Package and stage relationship

The manifests supply package names, while the stages decide how the installed system uses them. The base set supplies the shared desktop contract. Platform sets supply the packages that hardware and platform setup can use. The post-install stage then restores the package sources and trust model for normal operation.

This split allows a package to be present in the ISO without being active on every platform. It also lets hardware setup select a matching driver or firmware package while offline, while the resolver removes packages that the target repositories cannot provide.

References: bin/omarchy-pkg-defaults• L32-53 install/omarchy-base.packages• L1-3 install/omarchy-aarch64-qualcomm.packages• L1-17 install/omarchy-other.packages• L1-113 install/…/pacman.sh• L1-45

See Installation and provisioning for the wider install and first-run model. See Machine provisioning and unattended setup for deferred and unattended machine setup.

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the stage order aligned with dependencies between config, hardware, login, and post-install work.
  • Wire every new stage leaf into its matching all.sh entry point.
  • Keep platform setup last in the matching system or user stage.
  • Keep guarded graphics, memory, display, camera, and sleep rules in the hardware dispatch path.
  • Add hardware-required packages to the manifest used by the ISO as well as the hardware selection path.
  • Preserve the early package-keyring start and the post-install handoff when changing trust setup.
  • Preserve the platform channel fallback and per-machine keyring behavior for image builds.
  • Keep the base power-profile package aligned with the service enabled by config.
  • Keep region environment selection aligned with the region marker and remove stale region files when no environment exists.
  • Keep Qualcomm user media helpers guarded so non-Qualcomm machines remain unchanged.
  • Keep the language marker, locale generation, and write-once user language seed aligned.
  • Keep user finalization in the target user context and preserve its completion marker behavior.
  • Enable and start first-run user units only after the user manager is live, and keep network-dependent prompts off the blocking startup path.
  • Treat local file-index changes as a separate lifecycle because post-install no longer invokes that step.

Important failure modes

TriggerConsequenceGuard
A stage script is not added to its all.sh entry pointThe script exists but the install path never runs itTreat each all.sh file as the stage entry contract
A hardware-required package is absent from the platform or ISO package setsOffline hardware setup lacks the driver, firmware, or tool it needsChange package availability and hardware selection together
A guarded graphics, display, camera, or sleep rule is dispatched without its hardware checkAn unrelated machine can receive an unusable boot or device settingKeep model and platform guards next to each hardware action
A default application or theme package is removed from the base set without a replacementA fresh ISO session lacks content expected by the desktopKeep the base manifest aligned with the offline mirror and the session defaults
A package channel has no template for the target platformThe target can keep the wrong package sources or fail its first syncUse the platform default channel fallback
Package-keyring setup does not start before post-installFinal trust setup has no install-time keyring state to finishKeep the config keyring start before post-install handoff
Arch Linux ARM trust is missing before the first signed syncA non-Apple aarch64 target cannot verify its package sourceInstall or request the platform keyring before sync
Post-install package restoration does not runThe target can retain live-install sources or miss package-owned setupKeep post-install as the final root-side stage
User finalization runs as root or before account creationHome setup is applied to the wrong context or cannot completeRun it as the target non-root user
A language marker overwrites an existing user choiceThe user's desktop language changes during finalizationKeep language seeding write-once
First-run user units are enabled before the user manager is liveUnit links or starts can fail during the install chrootEnable and start them during the live first session
Network-dependent first-run work runs on the blocking startup pathA slow or absent link delays the rest of first-run setupKeep network announcement and follow-up work detached
A first-login step fails before its completion marker is writtenSetup is incomplete but can retry at the next loginInspect the first-run log and fix the failed step
A platform package is removed from a target's resolved setThe matching hardware stage can fail while offlineKeep resolver exclusions aligned with package availability

Key files

FileWhy to read it
bin/omarchy-apply-systemShows the root-side stage order and deferred provisioning boundary
bin/omarchy-apply-hardwareShows the hardware stage contract and rerun behavior
install/…/all.shShows the config stage entry points and their order
install/…/region.shShows how a selected region adds or removes session environment settings
install/…/enable-services.shShows the system services enabled for the next boot
install/…/pacman-keyring.shShows the early trust setup handed to post-install
install/…/all.shShows the shared hardware coverage and dispatch order
install/…/gpu-memory.shShows the shared integrated-GPU memory policy
install/…/nvidia.shShows detected NVIDIA driver and container support selection
install/…/hamoa-display.shShows shared Qualcomm display preparation for disk unlock
install/…/yoga-slim7x.shShows how a model-specific platform rule combines boot and sleep support
install/…/yoga-slim7x-hibernate.shShows the hibernation handoff for device drivers
install/…/surface-laptop-7.shShows board-specific Qualcomm support and package additions
install/…/galaxy-book4-edge-14.shShows model-specific boot and package support
install/…/all.shShows the login stage entry point
install/…/all.shShows the final package and device-rule pass
install/…/pacman.shShows source restoration, channel fallback, and keyring handling
bin/omarchy-provision-userShows user-stage context, idempotency, and home setup
install/…/all.shShows the user finalization entry points
install/…/enable-user-units.shShows first-session user-unit setup after the user manager becomes live
install/…/wifi.shShows network readiness and detached network-dependent first-run work
install/user/first-run/setup-agent.hookShows the one-time agent setup invitation
install/…/video-decode.shShows the Snapdragon video-decode user hook
bin/omarchy-provision-first-runShows first-login work and retry behavior
bin/omarchy-pkg-defaultsShows how manifests become one target package set
install/omarchy-base.packagesDefines the common desktop package contract
install/omarchy-aarch64-qualcomm.packagesDefines Snapdragon package additions for firmware, graphics, boot images, and cameras
install/omarchy-other.packagesDefines ISO-available optional and model-specific packages