Skip to content

cachyos

Recipe card from the charly-distros plugin (Images — the deployable catalog).

CachyOS base image, pulled from the upstream-published OCI image docker.io/cachyos/cachyos-v3 (optimized for modern x86_64_v3 CPUs), pinned by digest in box/cachyos/charly.yml — Docker Hub publishes only a :latest tag for cachyos-v3, so a digest is the most precise pin available. CachyOS is an Arch derivative, so it shares the Arch toolchain, pacman, and the arch-builder multi-stage builder.

The CachyOS family lives in the opencharly/distro-cachyos repo (git submodule at box/cachyos), with the cachyos base image owned there and its boxes discovered as box/<name>/charly.yml. It composes the main repo’s shared candies by @github git reference and imports the opencharly/distro-arch submodule under the arch namespace (import: [{arch: …}]) so it reaches arch.arch (the cachyos-pacstrap-builder base) and arch.arch-builder (the cachyos base’s builder) — one-directional, since arch imports nothing back. Build it from the submodule: charly -C box/cachyos box build cachyos (or charly --repo opencharly/distro-cachyos box build cachyos).

Property Value
Base docker.io/cachyos/cachyos-v3 (pinned by digest in charly.yml)
Layers (none)
Platforms linux/amd64
Distro cachyos, arch
Build pac
Builders pixi, npm, cargo, aur → arch-builder
Registry ghcr.io/opencharly
Home repo opencharly/distro-cachyos (box/cachyos)

The cachyos base and its derived boxes — githubrunner, charly-selftest, comfyui, immich-cdi and the other GPU boxes — all live in the opencharly/distro-cachyos submodule, discovered as box/<name>/charly.yml boxes. The main repo imports that submodule under the cachyos import namespace to reference the relocated boxes from its own check/vm/local/kubernetes entities:

# main charly.yml
import:
- cachyos: '@github.com/opencharly/distro-cachyos:<tag>' # namespaced child import → cachyos.<entry>

This is a one-directional main → cachyos dependency. The submodule, in turn, imports the opencharly/distro-arch submodule under the arch namespace (for arch.arch and the arch.arch-builder builder) — also one-directional, since arch imports nothing back. The whole import graph is therefore a DAG (main → cachyos → arch, plus main → arch directly), with no mutual cycle. When a repo is reached via two paths — arch, here, via main → arch and via main → cachyos → arch — the loader resolves it to a single materialization by repo identity, so main’s namespace pins win and a stale transitive pin inside a published submodule release never drags a divergent snapshot into the load (see /charly-internals:go “import-namespace loader”). The image DAG comfyui-cdi → cachyos → docker.io/cachyos-v3 is itself acyclic. comfyui-cdi lives in the same submodule as its base: cachyos, so it inherits the cachyos base’s distro:/build: values AND its builder: map (pixi/npm/cargo/aur → arch.arch-builder) directly — there is no namespace boundary between them. The namespace-relative builder map crosses the boundary once, where the cachyos base itself names the qualified arch.arch-builder ref.

CachyOS has the same AUR capability as the arch base, because it is Arch-derived and its builder.aur points at the shared arch-builder (which ships yay). Anything that builds on arch builds on cachyos:

  • A box based on cachyos that composes AUR candies needs no opt-in: aur is a builder, not a build format (build: lists OS package formats only). The image’s tag chain carries arch, so a candy’s distro.arch.aur declaration applies, and the box’s builder: aur: arch.arch-builder route (which this base declares) runs the AUR builder stage (<candy>-aur-build). It builds each candy’s packages into the candy’s own directory, which pacman then installs. A box that cannot run the aur builder fails the build naming the candy, never ships without the package (opencharly/sdk#608). A box that declares distro.arch.aur.package builds it through this route.
  • Candies author AUR packages under distro.arch.aur.package (see /charly-image:layer “AUR”); the arch distro tag is what cachyos boxes match (their distro: is [cachyos, arch]), so the same distro.arch sections used by every Arch box apply unchanged.
  • The cachyos base declares produce: [pixi, npm, cargo, aur] (identical to arch), advertising the same builder-capability profile as every other base distro.

There is no cachyos-specific AUR path and no cachyos-only builder — AUR on cachyos and AUR on arch are the same code path through arch-builder.

Terminal window
charly -C box/cachyos box build cachyos
charly shell cachyos -c "pacman --version"

Derived / sibling entries (all in opencharly/distro-cachyos)

Section titled “Derived / sibling entries (all in opencharly/distro-cachyos)”

The submodule also carries a CachyOS GPU box family — the Arch/CachyOS siblings of the Fedora GPU boxes (which live in box/fedora). They build on the cachyos.nvidia GPU base, which is cachyos + agent-forwarding + nvidia + cuda (the nvidia and cuda candies are multi-distro — Fedora rpm + Arch pac — so they compose unchanged on CachyOS):

  • cachyos.nvidia — the GPU base (cachyos + agent-forwarding + nvidia + cuda)
  • cachyos.python-ml — ML Python environment
  • cachyos.ollama-cdi — Ollama LLM server
  • cachyos.comfyui-cdi — ComfyUI image generation
  • cachyos.immich-cdi — the whole Immich stack in ONE image: server + web + the in-process CUDA ML backend on port 3003 (no separate ML image)

The canonical base pulls the upstream OCI image (the path the CachyOS project itself recommends — see https://github.com/CachyOS/docker). It’s the faster default (no privileged pacstrap, no kernel build). The pacstrap-from-scratch variant (/charly-distros:cachyos-pacstrap) is retained for offline/air-gapped builds and also builds end-to-end (the pacstrap renderer derives [options] Architecture from the cachyos-v3 microarch repos and emits per-repo SigLevel).

After charly -C box/cachyos box build cachyos:

  • charly box list — box appears
  • charly shell cachyos -c "pacman --version" — pacman available
  • charly box inspect comfyui-cdi --format base (from main) → cachyos.cachyos (the cachyos import namespace resolves)
  • charly check box cachyos — build-scope check: 3 probes pass (os-release ID=cachyos, pacman --version, pacman-conf --repo-list contains cachyos-v3). These also pass when cachyos is built from main via the cachyos import namespace, and are inherited by every derived box through the base chain.

MUST be invoked when the task involves the cachyos base image, the opencharly/distro-cachyos submodule, or the main → cachyos import-namespace coupling. Invoke this skill BEFORE reading source code or launching Explore agents.