Skip to content

Add Omarchy image support - #41

Open
AbdullahFageeh wants to merge 5 commits into
ps5-linux:mainfrom
AbdullahFageeh:add-omarchy-packaged
Open

AbdullahFageeh wants to merge 5 commits into
ps5-linux:mainfrom
AbdullahFageeh:add-omarchy-packaged

Conversation

@AbdullahFageeh

@AbdullahFageeh AbdullahFageeh commented Oct 24, 2026 •

Copy link
Copy Markdown

Supersedes #40, which hand-assembled Omarchy's package lists instead of installing Omarchy itself.

Adds Omarchy (DHH's Arch + Hyprland desktop, omarchy.org) to the image list, so latest publishes ps5-omarchy.img.xz next to the existing Ubuntu / Arch / CachyOS / Fedora / Proxmox / Debian / Bazzite / SteamOS images.

How it is built

Omarchy installs from an ISO wizard, but the desktop itself ships as Arch packages in Omarchy's own repo, and Omarchy's docs treat prebuilt images as a supported shape: the image carries the packages, and the per-machine hardware leaves run on first boot (docs/file-layout.md, agents/skills/install-scripts.md). So this distro installs the real packages instead of re-creating their package lists:

  1. distros/omarchy/stage-pkgs.sh — fetch omarchy.db plus omarchy, omarchy-settings, omarchy-keyring, omarchy-themes-intros, omarchy-nvim, omarchy-hyprland-titlebars from https://pkgs.omarchy.org/stable/x86_64 (channel selectable via OMARCHY_CHANNEL) into /build/cache/omarchy.
  2. distros/omarchy/image.yaml — small Arch base (GPU/vulkan, PipeWire, NetworkManager + IWD/wpa_supplicant, seatd/polkit, gum/perl/sddm for omarchy-settings), linux-ps5 via pacman -U, initramfs rebuilt without autodetect.
  3. post-files action — installs the staged packages (pacman -U --nodeps: the distrobuilder chroot has no DNS in the container), writes Omarchy's pacman setup ([omarchy] repo first, then Arch off Omarchy's stable mirror — what omarchy apply pacman installs on x86), and sources distros/omarchy/post-install.sh.
  4. distros/omarchy/post-install.sh — Omarchy's config/ and login/ setup leaves (locale, firewall, service enablement, docker, passwordless keyring, PAM lines) and omarchy-finalize-user for ps5 — i.e. omarchy apply system minus hardware/ (machine-specific, several build DKMS against linux-omarchy) and boot/ (limine + snapper; PS5 images boot through kexec).
  5. Session — tty1 autologin as ps5 → exec Hyprland, no SDDM, matching the Arch / CachyOS / SteamOS images. Omarchy's config/, login/ and post-install/ leaves reset the login path, so that setup is re-applied after they run.

Wiring

File Change
build_image.sh omarchy in --distro help, FORMAT=arch
docker/image-builder/entrypoint.sh nothing pre-omarchy: the generic distros/<distro>/build-rootfs.sh branch is used (comment updated to say it also covers distros that run distrobuilder with extra package sources)
.github/workflows/build-image.yml new omarchy choice, all matrix entry, release table row (Omarchy, ps5-omarchy.img.xz)
README.md quick start, --distro table, distributions table, layout
distros/omarchy/ image.yaml, build-rootfs.sh, stage-pkgs.sh, post-install.sh, cmdline.txt, grow-rootfs(.service), README.md

Verification

  • bash -n on build_image.sh, entrypoint.sh, build-rootfs.sh, stage-pkgs.sh, post-install.sh
  • yaml.safe_load on the workflow and image.yaml
  • package names/versions in stage-pkgs.sh checked against the live https://pkgs.omarchy.org/stable/x86_64/omarchy.db (all six present, e.g. omarchy-4.0.6-1, omarchy-settings-4.0.6-1); the mirror URLs in the pacman setup return 200 for core/extra
  • Not run: an actual ./build_image.sh --distro omarchy (privileged Docker host + kernel build). The riskiest parts are the chroot install (pacman -U --nodeps) and Omarchy's setup leaves under QEMU; happy to iterate if CI (run-ci label) surfaces failures.

Notes

  • hardware/ leaves are intentionally not run at build time; if Omarchy's own first-boot hardware provisioning is wanted, omarchy-provision-hardware should be armed with an image manifest (format=1, platform=x86) as omarchy apply system does for image builds.
  • Default credentials are ps5 / ps5 with passwordless sudo, consistent with the other images.

Abdullah Fageeh added 3 commits October 24, 2026 04:56
Omarchy is Arch + Hyprland, so this reuses the Arch distrobuilder recipe:
distros/omarchy/image.yaml installs the runtime half of Omarchy's own
package lists (install/omarchy-base.packages + omarchy-other.packages),
drops linux-ps5 in with pacman -U and boots into Hyprland from a tty1
autologin — the same pattern as the Arch, CachyOS and SteamOS images.

Excluded from the package set: ISO-provided kernels (linux-omarchy,
linux-t2), DKMS trees that cannot build against linux-ps5 (nvidia*,
broadcom-wl-dkms, asusctl, tuxedo-drivers, t2fanrd, macbook12-spi) and
boot/OS-management pieces of the ISO (limine, plymouth, snapper,
btrfs-progs) that the kexec + FAT32/ext4 layout does not use.

Wires the distro into build_image.sh (arch kernel format), the image
builder entrypoint staging, the build-image workflow choice/all matrix
and the release table so it is published as ps5-omarchy.img.xz next to
the other images.
The first revision hand-assembled Omarchy's package lists. That is not what
an Omarchy machine is: the desktop ships as Arch packages in Omarchy's own
repo (omarchy, omarchy-settings, omarchy-keyring, themes, nvim config,
titlebars), and Omarchy's docs describe prebuilt images as a supported
shape (docs/file-layout.md, agents/skills/install-scripts.md), with hardware
leaves deferred to the machine's first boot.

- stage-pkgs.sh: fetch omarchy.db plus the six runtime/support packages from
  pkgs.omarchy.org (channel selectable via OMARCHY_CHANNEL), cached in
  /build/cache/omarchy.
- image.yaml: small Arch base (GPU, session plumbing, network, linux-ps5);
  the post-files action installs the staged packages with
  pacman -U --nodeps (no DNS in the chroot) and runs Omarchy's pacman setup
  (its repo + Omarchy's stable Arch mirror), as `omarchy apply pacman` does.
- post-install.sh: Omarchy's config/ and login/ setup leaves plus
  omarchy-finalize-user for ps5 — the steps omarchy-apply-system runs
  outside hardware/ and boot/.
- build-rootfs.sh: runs the distrobuilder recipe and drops the staging
  directories again afterwards.
- entrypoint.sh: the generic build-rootfs.sh branch is used, so the
  duplicated staging case goes away (comment updated to match).
@AbdullahFageeh
AbdullahFageeh marked this pull request as ready for review October 24, 2026 02:04
@AbdullahFageeh

Copy link
Copy Markdown
Author

⚠️ Before merging: wip: commit, and the web-visible part is intentionally held back

The last commit (wip: hide omarchy from release table while the build is unverified) removes the omarchy row from ALL_DISTROS in build-image.yml. deploy runs on every push to main, and the release job rewrites the latest release body from that list, so merging as-is builds an image nobody links to.

Once a build is proven, that commit should be reverted (restore the { key: 'omarchy', label: 'Omarchy', file: 'ps5-omarchy.img.xz' } line). It lives in the same file deploy runs from and that upstream-patches-watch edits, so it can't be left to a follow-up PR without breaking both. Options:

  1. Merge all three commits — the image builds and uploads to R2, but stays out of the release table until a one-line follow-up PR adds the row.
  2. Merge only the first two (git rebase --onto / cherry-pick): image is built and listed right away, unverified.
  3. Run the build first — add the run-ci label (that is the trigger for pull_request_target builds) and I will drop the wip commit once it passes.

My suggestion is 3 if a runner is available, otherwise 1 and keep the follow-up small.

…ified"

This reverts commit de44e50 and restores the Omarchy row in ALL_DISTROS,
so the release job publishes ps5-omarchy.img.xz in the `latest` release
once an Omarchy build has run successfully.

Keep this commit last: merging the branch before the image has been built
and uploaded links a missing asset. Merge after the build, or merge with
the wip commit in place and land this one when the image is on R2.
@AbdullahFageeh

Copy link
Copy Markdown
Author

Revert commit is ready (8538695)

Added Revert "wip: hide omarchy from release table while the build is unverified" on top of the branch. It is an exact inverse of the wip commit — diff is one line in ALL_DISTROS:

+              { key: 'omarchy',      label: 'Omarchy',              file: 'ps5-omarchy.img.xz' },

Net effect of the whole branch vs main: 12 files, +607/−10, omarchy present in the workflow_dispatch choice, the all matrix, and the release table.

What this means for merging

  • main HEAD now lists Omarchy — do not merge until ps5-omarchy.img.xz is actually on R2, or latest will link a 404 for the duration of the deploy build.
  • If you want to merge before the build: use git rebase --onto 680dcb6 de44e50 (drops the wip) or merge with wip still last, then land the revert afterwards.
  • Recommended: add the run-ci label → omarchy job builds → image lands on R2 → flip to ready and merge this branch as-is.

@AbdullahFageeh

Copy link
Copy Markdown
Author

@earthonion ready for a look.

One thing needed from you: the run-ci label. The build jobs run on self-hosted runners with the R2 secrets, so only this repo can build it — a fork trigger won't work.

Suggested order:

  1. Add run-ci → the omarchy job builds (most likely failure points: pacman -U --nodeps in the chroot, Omarchy's config leaves under QEMU)
  2. If green: merge as-is. The last commit already puts the Omarchy row back in ALL_DISTROS, so the next deploy publishes ps5-omarchy.img.xz into the latest release table.
  3. If red: send me the log and I'll fix it.

No rebase needed — main is still 387e311.

@amirmx2

amirmx2 commented Nov 22, 2026

Copy link
Copy Markdown

Please add LiberNT Linux image . Its windows 11 on Linux kernel and so amazing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants