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 / regional-configuration-and-connectivity

Regional configuration and connectivity

Omarchy adapts a system to its region and network conditions without changing the core desktop model. It selects package sources and time defaults for supported markets, keeps language and format choices separate, and delays network-dependent first-run actions until the link is ready. It also uses known probes to help users work with captive portals or constrained links.

Regional package sources

Regional package sources provide a closer path to Omarchy and Arch packages when a supported region needs one. A region marker selects a profile during installation or first-boot owner setup. The profile adds regional servers before the global servers, so the global sources remain fallback paths. The current regional profile is China (cn), and it applies to x86 systems only. bin/omarchy-apply-pacman#L36-L83

The package source flow keeps channel and region as separate choices:

ChoiceRole
Package channelSelects stable, release candidate, or edge repositories.
Hardware platformSelects the matching package templates.
RegionAdds a supported regional repository and mirror before the global source.

The system settles a region from the owner's timezone when a deferred install used regional media. Hong Kong, Macau, and Taiwan stay global even when the source media came from the China profile. A region change re-renders the package configuration for the installed channel. bin/omarchy-provision-owner#L905-L938

References: bin/omarchy-apply-pacman• L36-83 bin/omarchy-provision-owner• L905-938 default/…/mirrorlist-stable.prepend• L1

Time synchronization

Time synchronization gives systemd-timesyncd a small set of Omarchy-controlled fallback servers. Network-provided servers and an explicit administrator setting take precedence, while ntp.omarchy.org can change its destination without requiring a desktop update. default/systemd/timesyncd.conf.d/10-omarchy.conf#L1-L10

The time model separates clock synchronization from timezone selection. The installer can use a network lookup to preselect a timezone, but it falls back to a local list or UTC when the machine has no network. The desktop timezone menu changes the system timezone and refreshes the clock display. install/…/setup-form.sh• L203-220 bin/omarchy-menu-timezone#L7-L12

References: default/…/10-omarchy.conf• L1-10 install/…/setup-form.sh• L203-220 bin/omarchy-menu-timezone• L7-12

Localization and regional system settings

Localization controls how users see language and how system tools handle text. Omarchy keeps the system locale in English for reliable console display, then generates a selected user's locale from a fixed language registry. It repairs only an unset or C/POSIX base locale and does not replace an explicit locale choice. install/…/locale.sh• L13-50 install/…/language.sh• L1-13

Regional formats now form a separate choice from interface language. The format setting controls dates, times, numbers, currency, measurement, and paper categories, while language categories remain with the selected language. Users can select a region format or make formats follow the language. The setting applies to the session after the required locale exists. bin/omarchy-region-formats#L15-L21 bin/omarchy-region-formats#L63-L97 bin/omarchy-menu-region-formats#L21-L37

The machine's installation region is a separate value from the user's display format. omarchy-region reports the installation profile, or global when no profile is stored. This distinction lets package routing and user-facing regional formats change independently. bin/omarchy-region#L3-L8

Timezone choice also supplies the country hint for the wireless regulatory domain. Installation writes that setting for the next boot. First-boot owner setup applies the final timezone and can update the active wireless setting without waiting for another reboot. install/…/set-wireless-regdom.sh• L1-24 bin/omarchy-provision-owner#L891-L949

References: install/…/locale.sh• L13-50 install/…/language.sh• L1-13 bin/omarchy-locale-generate• L18-48 bin/omarchy-region• L3-8 bin/omarchy-region-formats• L15-21 bin/omarchy-region-formats• L63-97 bin/omarchy-menu-region-formats• L21-37 install/…/set-wireless-regdom.sh• L1-24

First-run network readiness

First-run network readiness prevents update prompts from appearing before NetworkManager has finished checking available links. The first-run flow waits for startup, shows a Wi-Fi prompt when no link is ready, and keeps waiting in the background before it checks for repository or development-checkout updates. install/…/wifi.sh• L25-51

This flow separates network setup from update discovery. A fresh system does not receive an update prompt when its package state is already current, while a system with a pending update receives a notification that opens the update action. install/…/wifi.sh• L6-23

References: install/…/wifi.sh• L6-23 install/…/wifi.sh• L25-51 bin/omarchy-provision-first-run• L89-102

Connectivity checks

Connectivity checks tell the network panel whether a link has full internet access, limited access, no access, or a captive portal. NetworkManager probes Omarchy's plain-HTTP endpoint and expects an empty 204 response. The panel opens that exact fixed URL when the state indicates a captive portal, which lets the network redirect the sign-in request without trusting a server-provided URL. etc/NetworkManager/conf.d/omarchy-connectivity.conf#L1-L11 shell/…/Model.js• L45-65

The captive-portal flow connects the probe, sign-in window, and final network state:

sequenceDiagram
    participant NM as NetworkManager
    participant Panel as Network panel
    participant Portal as Captive portal
    participant User as User

    NM->>NM: Probe the fixed HTTP endpoint
    NM-->>Panel: Report portal or limited access
    User->>Panel: Choose portal sign-in
    Panel->>Portal: Open the same fixed URL
    Portal-->>User: Show sign-in page
    User->>Portal: Complete sign-in
    NM->>NM: Re-check connectivity
    NM-->>Panel: Report full access
    Panel->>Panel: Close the floating sign-in window

The sign-in helper waits for NetworkManager to report full access before closing the floating browser window. If a Tailscale exit node blocks the portal, it pauses that node for the sign-in and restores it after connectivity returns. bin/omarchy-network-captive-portal#L14-L35 bin/omarchy-network-captive-portal#L87-L123 default/hypr/apps/captive-portal.lua#L1-L5

References: etc/…/omarchy-connectivity.conf• L1-11 shell/…/Model.js• L45-65 bin/omarchy-network-captive-portal• L87-123 default/…/captive-portal.lua• L1-5

Network speed measurement

Network speed measurement gives the user a direct view of download and upload throughput on the active connection. The network panel runs the two directions in sequence through a small launcher, which hands control to the packaged speed-test client so closing the panel can stop the active transfer. shell/plugins/panels/speedtest/Panel.qml#L84-L129 bin/omarchy-network-speedtest#L7-L19

The launcher accepts only one direction at a time and reports a clear error when the client is not installed. The panel also uses a timeout so a stalled measurement does not leave the speed-test view running forever. bin/omarchy-network-speedtest#L9-L19 shell/plugins/panels/speedtest/Panel.qml#L166-L173

References: bin/omarchy-network-speedtest• L7-19 shell/…/Panel.qml• L84-129 shell/…/Panel.qml• L166-173

The detailed package, timezone, format, and captive-portal behavior is split into child pages:

References: bin/omarchy-apply-pacman• L36-83 bin/omarchy-region-formats• L63-97 bin/omarchy-network-captive-portal• L87-123 bin/omarchy-network-speedtest• L7-19

Change checklist

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

  • Keep the regional mirror order aligned with the matching package channel and preserve the global server as fallback.
  • Keep the region marker, timezone profile, and first-boot re-render path consistent so a deferred install does not retain the wrong source.
  • Keep the NetworkManager probe URL equal to the network panel's portal URL and preserve the endpoint's plain-HTTP and empty-response contract.
  • Keep first-run NetworkManager waits and update checks ordered so an offline system gets a Wi-Fi prompt instead of a misleading update prompt.
  • Keep the speed-test launcher directions aligned with the panel's download-then-upload sequence and preserve the parent-process handoff used for cancellation.
  • Keep the supported language registry, locale generator, and passwordless sudo allowlist in sync.
  • Keep the format registry, locale generation step, and session environment categories aligned so format choices do not change interface language.
  • Keep timezone-derived wireless regulatory settings separate from live network connectivity state.

Important failure modes

TriggerConsequenceGuard
A regional mirror profile lacks a channel fragmentPackage configuration cannot be safely rebuilt for that regionValidate both fragments before replacing either live file.
The owner selects a timezone that does not match the media regionThe region can change to global or remain the media region by policyReconcile the timezone with the profile list and explicit global exceptions.
The panel opens a URL different from NetworkManager's probeA captive portal may not intercept the sign-in windowUse one fixed URL for both probing and browser launch.
A portal is opened through an active Tailscale exit nodeThe sign-in page may remain blocked by the tunnelPause the exit node during sign-in and restore it on exit.
First-run update checks run before NetworkManager finishes link setupThe user can see an update prompt that cannot work yetWait for startup completion and hold the prompt until a link is available.
The speed-test client does not replace the launcher processClosing the panel can leave the transfer runningPreserve the launcher handoff and parent-process value.
A user selects an unsupported language codeLocale generation could target an unknown localeAccept only registry-backed codes and generate only validated locale names.
A format locale is unavailable when the session setting is writtenThe session can point format categories at a missing localeGenerate the locale before writing or applying the format setting.
Format categories are assigned to the language localeRegional formats can change when the user changes interface languageKeep format categories separate and remove the override when formats follow language.

Key files

FileWhy to read it
bin/omarchy-apply-pacmanShows how channel templates and regional package sources become the active pacman configuration.
bin/omarchy-provision-ownerShows how the owner's timezone settles the region and related wireless settings after deferred installation.
default/regions/cn/timezonesDefines the timezone set that maps to the current regional profile.
default/systemd/timesyncd.conf.d/10-omarchy.confDefines the fallback time sources and their precedence.
install/…/locale.sh and bin/omarchy-locale-generateShow the boundary between the system locale and user language generation.
bin/omarchy-regionReports the installation region without mixing it with user-facing format selection.
bin/omarchy-region-formats and bin/omarchy-menu-region-formatsDefine the user-facing regional format choice and its session effect.
etc/NetworkManager/conf.d/omarchy-connectivity.confDefines the network probe contract used for captive-portal detection.
shell/…/Model.jsMaps NetworkManager connectivity states to panel behavior and the portal URL.
bin/omarchy-network-captive-portalCoordinates portal sign-in, connectivity re-checks, and Tailscale exit-node handling.
install/…/wifi.shCoordinates first-run link readiness, Wi-Fi prompts, and update notices.
bin/omarchy-network-speedtest and shell/plugins/panels/speedtest/Panel.qmlDefine the user-facing download/upload measurement flow and its cancellation boundary.