Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions default/pacman/aarch64-apple/pacman-edge.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ LocalFileSigLevel = Optional

# pacman searches repositories in the order defined here. Omarchy comes first on
# Apple Silicon, so its builds for the Mac (the Aurora kernel, m1n1, U-Boot and
# the Hyprland stack) win over the same names in Asahi ALARM and Arch Linux ARM.
# the Hyprland stack) win over the same names in Arch Linux ARM.
[omarchy]
Server = https://pkgs.omarchy.org/edge/$arch

[asahi-alarm]
Server = https://github.com/asahi-alarm/asahi-alarm/releases/download/aarch64

[core]
Include = /etc/pacman.d/mirrorlist

Expand Down
5 changes: 1 addition & 4 deletions default/pacman/aarch64-apple/pacman-rc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ LocalFileSigLevel = Optional

# pacman searches repositories in the order defined here. Omarchy comes first on
# Apple Silicon, so its builds for the Mac (the Aurora kernel, m1n1, U-Boot and
# the Hyprland stack) win over the same names in Asahi ALARM and Arch Linux ARM.
# the Hyprland stack) win over the same names in Arch Linux ARM.
[omarchy]
Server = https://pkgs.omarchy.org/rc/$arch

[asahi-alarm]
Server = https://github.com/asahi-alarm/asahi-alarm/releases/download/aarch64

[core]
Include = /etc/pacman.d/mirrorlist

Expand Down
5 changes: 1 addition & 4 deletions default/pacman/aarch64-apple/pacman-stable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ LocalFileSigLevel = Optional

# pacman searches repositories in the order defined here. Omarchy comes first on
# Apple Silicon, so its builds for the Mac (the Aurora kernel, m1n1, U-Boot and
# the Hyprland stack) win over the same names in Asahi ALARM and Arch Linux ARM.
# the Hyprland stack) win over the same names in Arch Linux ARM.
[omarchy]
Server = https://pkgs.omarchy.org/stable/$arch

[asahi-alarm]
Server = https://github.com/asahi-alarm/asahi-alarm/releases/download/aarch64

[core]
Include = /etc/pacman.d/mirrorlist

Expand Down
2 changes: 1 addition & 1 deletion docs/file-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ A platform's runtime package (omarchy-mac on Apple Silicon, say) adds its deskto

See [lifecycle-dispatch.md](lifecycle-dispatch.md#platform-files).

`omarchy-update-keyring` refreshes each installed package `keyrings` names (`#` comments and blank lines skipped, and a line that isn't a `*-keyring` package name skipped with a warning) along with Arch's, before the system upgrade, installing any newer version the repository has, so a key rotation in the platform's own repository never fails that upgrade's signature checks. On Apple Silicon, omarchy-mac names `asahi-alarm-keyring` there.
`omarchy-update-keyring` refreshes each installed package `keyrings` names (`#` comments and blank lines skipped, and a line that isn't a `*-keyring` package name skipped with a warning) along with Arch's, before the system upgrade, installing any newer version the repository has, so a key rotation in the platform's own repository never fails that upgrade's signature checks. No platform names one today: Apple Silicon's default packages all come from Omarchy and Arch Linux ARM.

#### Display hints (`displays.conf`)

Expand Down
2 changes: 1 addition & 1 deletion docs/update-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ The refresh before that swap ignores `omarchy-dev` and `omarchy-settings-dev` on
Channel switching runs the `pre-refresh-pacman` hook once, during its refresh
step, after the package config is re-synced and before the refresh transaction. It does not run if the switch fails earlier.

Every platform has its own pacman.conf and mirrorlist for each channel it offers (x86_64 and aarch64 stable, rc and edge; Apple Silicon too, below), and a channel change or install finalization copies them into place whole, the same way on every platform (`install/helpers/pacman.sh`); a channel change backs up the old pair first. x86_64's are `default/pacman/pacman-<channel>.conf` and `mirrorlist-<channel>`; Snapdragon and other aarch64 machines use `default/pacman/aarch64/`, the same files with Arch Linux ARM's repositories and Omarchy's mirror of them for that channel (`arm-mirror.omarchy.org`, `arm-rc-mirror.omarchy.org`, `arm-stable-mirror.omarchy.org`), Omarchy's repository ahead of Arch Linux ARM's, as x86_64 puts it ahead of Arch's (migration 1791403252 reorders existing machines the same way, and a refresh can then move a package Omarchy also publishes to Omarchy's build, downgrading it if that build is older); Apple Silicon uses `default/pacman/aarch64-apple/`, which puts Omarchy and Asahi ALARM ahead of Arch Linux ARM. Apple Silicon has stable, rc and edge templates (its rc and stable use `pkgs.omarchy.org/<channel>` and `arm-<channel>-mirror.omarchy.org`; Asahi ALARM has one repository for every channel); its packages reach rc by promotion from edge, and stable by promotion from rc. A channel change refuses a channel without both files for the platform before anything changes. On aarch64, `omarchy-channel-set` refuses to link a dev checkout without `bin/omarchy-hw-platform` and `install/helpers/pacman.sh`, whose own refresh would write the x86_64 templates. `omarchy-reinstall-pkgs` resets to the platform's default channel (`omarchy_pacman_default_channel`: stable, or edge on Apple Silicon) and installs its default packages; install finalization does the same when the install's channel has no templates for the platform.
Every platform has its own pacman.conf and mirrorlist for each channel it offers (x86_64 and aarch64 stable, rc and edge; Apple Silicon too, below), and a channel change or install finalization copies them into place whole, the same way on every platform (`install/helpers/pacman.sh`); a channel change backs up the old pair first. x86_64's are `default/pacman/pacman-<channel>.conf` and `mirrorlist-<channel>`; Snapdragon and other aarch64 machines use `default/pacman/aarch64/`, the same files with Arch Linux ARM's repositories and Omarchy's mirror of them for that channel (`arm-mirror.omarchy.org`, `arm-rc-mirror.omarchy.org`, `arm-stable-mirror.omarchy.org`), Omarchy's repository ahead of Arch Linux ARM's, as x86_64 puts it ahead of Arch's (migration 1791403252 reorders existing machines the same way, and a refresh can then move a package Omarchy also publishes to Omarchy's build, downgrading it if that build is older); Apple Silicon uses `default/pacman/aarch64-apple/`, which puts Omarchy ahead of Arch Linux ARM. Apple Silicon has stable, rc and edge templates (its rc and stable use `pkgs.omarchy.org/<channel>` and `arm-<channel>-mirror.omarchy.org`); its packages reach rc by promotion from edge, and stable by promotion from rc. A channel change refuses a channel without both files for the platform before anything changes. On aarch64, `omarchy-channel-set` refuses to link a dev checkout without `bin/omarchy-hw-platform` and `install/helpers/pacman.sh`, whose own refresh would write the x86_64 templates. `omarchy-reinstall-pkgs` resets to the platform's default channel (`omarchy_pacman_default_channel`: stable, or edge on Apple Silicon) and installs its default packages; install finalization does the same when the install's channel has no templates for the platform.

There is no version file at runtime. `omarchy-version` derives the version from
`pacman -Q` on whichever package is installed, or reports `dev (<hash>)` for a
Expand Down
2 changes: 1 addition & 1 deletion install/omarchy-aarch64-apple.packages
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ omarchy-mac
omarchy-mac-boot

# Picks the startup volume (macOS or Omarchy) from Linux.
asahi-bless
aurora-bless

# Hardware video decode.
avd-fw
Expand Down
2 changes: 1 addition & 1 deletion manual/48-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Omarchy takes security extremely seriously. This is meant to be an operating sys
1. *Full-disk encryption is on by default*: This is the most important step to securing the physical protection of your data. If your computer is lost or stolen, the data is fully encrypted using standard LUKS (Linux Unified Key Setup). The installer lets you opt out for throw-away machines (see [Getting started](02-getting-started.md)); an install without encryption has none of this protection, and anyone holding the drive can read it.
2. *Firewall is enabled by default*: All incoming traffic is blocked by default, with a few exceptions: port 53317 for [LocalSend](https://localsend.org/); DNS queries to the computer's own resolver at the Docker bridge address (172.17.0.1), accepted from the private address ranges Docker gives its containers; and multicast DNS (port 5353), which lets printers and other devices on your network find each other and also announces your computer's name there. On top of those, the firewall keeps UFW's standard allowances for ping, getting an address from your router (DHCP), and UPnP discovery. Even ssh is off until you turn it on via _Setup > Security > SSHD_, which authorizes your SSH key, turns off password logins, and only then opens port 22 (rate limited against brute force). We even lock down Docker access using the [ufw-docker](https://github.com/chaifeng/ufw-docker) setup to prevent your containers from accidentally being exposed to the world.
3. *Arch always has the latest updates*: Arch, the underlying distro that Omarchy is built on, is a rolling distribution. This means that any security vulnerability that's discovered and patched in any package is quickly available for install using `omarchy-update`. You're always running the latest, most secure versions of everything that way.
4. *Omarchy maintains its own packages and mirror*: Omarchy only relies on packages from Arch's own core/extra/multilib repositories (Arch Linux ARM's on ARM machines, plus Asahi ALARM on Apple Silicon) and its own Omarchy Package Repository by default. You can install software directly from AUR, but the base install doesn't — only a few optional installs, like the third-party browsers, pull from the AUR.
4. *Omarchy maintains its own packages and mirror*: Omarchy only relies on packages from Arch's own core/extra/multilib repositories (Arch Linux ARM's on ARM machines) and its own Omarchy Package Repository by default. You can install software directly from AUR, but the base install doesn't — only a few optional installs, like the third-party browsers, pull from the AUR.
5. *Cloudflare protects us from DDoS*: Omarchy distribution infrastructure — the ISOs, the Omarchy packages, the Arch mirror — is protected behind Cloudflare's formidable DDoS shield and hosted on their CDN. This provides superb availability.

## Changing your passwords
Expand Down
2 changes: 1 addition & 1 deletion test/shell.d/pacman-templates-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ for platform in $platforms; do
case $platform in
x86) expected="omarchy core extra multilib " ;;
aarch64) expected="omarchy core extra alarm " ;;
aarch64-apple) expected="omarchy asahi-alarm core extra alarm " ;;
aarch64-apple) expected="omarchy core extra alarm " ;;
esac
[[ $list == "$expected" ]] || fail "$platform $channel: repositories in order" "$list"
# $arch stays literal: pacman fills it in on the machine.
Expand Down
20 changes: 10 additions & 10 deletions test/shell.d/update-keyring-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,26 +197,26 @@ grep -Eq $'^sudo\tpacman\t-Sy\t--needed\t--noconfirm\tarchlinux-keyring\tomarchy
fail "x86 refreshes only Arch's keyring, even with Arch Linux ARM's installed" "$(cat "$log_file")"
pass "aarch64 machines also refresh Arch Linux ARM's keyring where it is installed, x86 never"

# The platform package's list adds the installed keyrings it names: Apple
# Silicon's [asahi-alarm], with no platform branch here.
printf '%s\n' '# Asahi' '' asahi-alarm-keyring archlinuxarm-keyring other-keyring asahi-alarm-keyring >"$platform_keyrings"
printf 'asahi-alarm-keyring' >>"$platform_keyrings"
# The platform package's list adds the installed keyrings it names, such as a
# platform repository's own, with no platform branch here.
printf '%s\n' '# Example' '' example-keyring archlinuxarm-keyring other-keyring example-keyring >"$platform_keyrings"
printf 'example-keyring' >>"$platform_keyrings"
: >"$log_file"
rm -f "$test_tmp/list-calls"
KEYRING_TEST_ARM=1 KEYRING_TEST_PLATFORM=aarch64-apple KEYRING_TEST_INSTALLED=asahi-alarm-keyring run_keyring >"$test_tmp/platform.out"
grep -Eq $'^sudo\tpacman\t-Sy\t--needed\t--noconfirm\tarchlinux-keyring\tomarchy-keyring\tarchlinuxarm-keyring\tasahi-alarm-keyring$' "$log_file" ||
KEYRING_TEST_ARM=1 KEYRING_TEST_PLATFORM=aarch64-apple KEYRING_TEST_INSTALLED=example-keyring run_keyring >"$test_tmp/platform.out"
grep -Eq $'^sudo\tpacman\t-Sy\t--needed\t--noconfirm\tarchlinux-keyring\tomarchy-keyring\tarchlinuxarm-keyring\texample-keyring$' "$log_file" ||
fail "update-keyring refreshes the installed keyrings the platform names, once each" "$(cat "$log_file")"
pass "update-keyring refreshes the installed keyrings the platform names, once each"

for listed in 'asahi-alarm-keyring;reboot' '../asahi-alarm-keyring' 'asahi-alarm' '-Syu-keyring' 'asahi-alarm-keyring extra'; do
printf '%s\n%s\n' "$listed" asahi-alarm-keyring >"$platform_keyrings"
for listed in 'example-keyring;reboot' '../example-keyring' 'example' '-Syu-keyring' 'example-keyring extra'; do
printf '%s\n%s\n' "$listed" example-keyring >"$platform_keyrings"
: >"$log_file"
rm -f "$test_tmp/list-calls"
KEYRING_TEST_INSTALLED=asahi-alarm-keyring run_keyring >"$test_tmp/invalid.out" 2>&1 ||
KEYRING_TEST_INSTALLED=example-keyring run_keyring >"$test_tmp/invalid.out" 2>&1 ||
fail "update-keyring carries on past a platform list line naming $listed" "$(cat "$test_tmp/invalid.out")"
grep -qF "skipping $listed" "$test_tmp/invalid.out" ||
fail "update-keyring warns about $listed" "$(cat "$test_tmp/invalid.out")"
grep -Eq $'^sudo\tpacman\t-Sy\t--needed\t--noconfirm\tarchlinux-keyring\tomarchy-keyring\tasahi-alarm-keyring$' "$log_file" ||
grep -Eq $'^sudo\tpacman\t-Sy\t--needed\t--noconfirm\tarchlinux-keyring\tomarchy-keyring\texample-keyring$' "$log_file" ||
fail "update-keyring skips $listed and still refreshes the valid keyrings, and nothing else" "$(cat "$log_file")"
done
rm -f "$platform_keyrings"
Expand Down