Packages and manifests
The native package recipes in enzimos-packages and the product, app and artifact contracts in enzimos-manifests.
Two repositories describe what goes into an enzimOS system. enzimos-manifests holds
machine-readable product policy and payload contracts: data, not installed configuration.
enzimos-packages holds the native OS code and the Arch package recipes that put it on
disk. The image tools in enzimos-build consume both; see
Building from source.
enzimos-packages
Everything that runs from this repository is Rust. It provides the system policy, the authenticated system backend and the OS integration for updates, snapshots, recovery, backups, account policy and system settings.
Crates
| Crate | Binaries and role |
|---|---|
crates/platform | Shared primitives: bounded JSON, descriptor-based file system guards, pinned process execution, publication and restic helpers |
crates/policy | enzimos-policy, the root policy CLI, plus the boot and recovery executables enzimos-recovery-image-init, enzimos-recovery-run-init and enzimos-media-auth |
crates/backend | enzimos-system-backend (the org.enzimos.System1 D-Bus service), enzimos-backup-worker, enzimos-secret-validator and enzimos-user-switch |
cargo build --release
cargo testDo not install development packages on your host. Test them in disposable VMs.
The policy CLI
enzimos-policy SCOPE ACTION [--option value ...] is the root-only entry point that systemd
units, timers and pacman hooks call (installed as /usr/lib/enzimos-native/enzimos-policy).
Its scopes include authority, backup, boot-inventory, boot-retire, build-uki,
deferred, delivery, desktop, fallback, generation, home-history,
home-retention, lifecycle, maintenance, media-origin, memory, recovery-*,
root-ownership, root-rebind, root-retire, secure-boot, sign, system and
update.
Every action validates a fixed option set. Resource identities, journals and locks are authoritative: unknown or partial state blocks automatic replay or deletion, and a busy operation lock exits with status 75 so the caller retries later.
Packages
| Package | Directory | Contents |
|---|---|---|
enzimos-rust-packages | packaging/rust/ | The runtime binaries above, the recovery initramfs hook and its configuration. Prebuilt binaries only: no install hook and no service activation |
enzimos-native-policy | native-policy/ | systemd units, timers and drop-ins, pacman hooks, sysctl, udev, network, firewall and time defaults |
enzimos-backend-prototype | backend-prototype/ | D-Bus activation, bus policy, polkit actions and the unit for org.enzimos.System1. The name is historical; this is the shipping backend |
enzimos-policy | recipes/enzimos-policy/ | A metadata-only package that installs product.json to /usr/share/enzimos/ |
| — | desktop-integration/ | Greeter, user switching, printing and mDNS, gaming device access and background-slice integration used by the desktop image |
The native policy package depends on an exact enzimos-rust-packages version and on the
maintained tools it drives: Snapper and snap-pac, restic, NetworkManager, firewalld, chrony,
polkit, AppArmor, earlyoom, systemd-ukify and others. Configuration that administrators may
change, such as /etc/enzimos/memory-pressure.json and /etc/enzimos/backup-retention.json,
is listed in the recipe's backup= array so pacman preserves local edits.
Timers in the native policy package include:
| Unit | Work |
|---|---|
enzimos-home-history.timer | Local home snapshots (on by default) |
enzimos-backup.timer | External encrypted backups, only after explicit setup |
enzimos-generation-retention.timer | Retires old boot generations and fallback roots, 20 minutes after boot and then daily |
enzimos-scrub.timer, enzimos-trim.timer | Btrfs scrub and TRIM |
enzimos-deferred.timer | Deferred maintenance |
Background maintenance joins a low-weight background slice and keeps its own nice and idle I/O settings. The Settings backend page describes the D-Bus interface the backend package exposes.
Recipes and placeholders
Recipes are PKGBUILD.in templates. Payloads are supplied as an archive, and the template
carries checksum placeholders that the build tool fills in:
pkgname=enzimos-policy
pkgver=0.0.1
pkgrel=1
pkgdesc='enzimOS development product policy (metadata only)'
arch=('any')
license=('MIT')
source=('product.json' 'LICENSE')
sha256sums=('@POLICY_SHA256@' '@LICENSE_SHA256@')
package() {
install -Dm644 "$srcdir/product.json" "$pkgdir/usr/share/enzimos/product.json"
install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}cli.py stage-policy fills this template and refuses it if any placeholder is left
unresolved. Runtime packages are built from a recorded release snapshot rather than from a
working tree: packaging/rust/build-candidates.py --workspace --candidate --output reads every
recipe and binary from the recorded commit and manifest, and produces unsigned, inactive
archives. Each component's packaging/rust/runtime.json lists its binaries with install
paths, dependencies and resources so image assembly can check the payload inventory.
Other repositories follow the same pattern: for example, enzimos-updates and
recovery / enzimos-recovery-tools verify release hashes and stage their package payloads.
enzimos-manifests
The manifests repository records the product's consequential choices as JSON. It is
validated by enzimos-build/cli.py:
python ../enzimos-build/cli.py validate --manifests .
python ../enzimos-build/cli.py plan --manifests .These files describe the planned product baseline. A null field means "not selected
here", and never implies a default tool or version. Development images take their actual
package inputs explicitly through build_install_iso.py; the build's own receipts record
what was bound.
product.json
Product-wide policy, grouped by area:
{
"schema_version": 1,
"product": "enzimos",
"architecture": "x86_64",
"release_maturity": "alpha-planned",
"base": "arch-writable",
"firmware": ["uefi", "bios"],
"boot": {
"uefi_loader": "systemd-boot",
"bios_loader": "limine",
"kernels": ["linux", "linux-lts"],
"initramfs": "mkinitcpio-systemd",
"hibernation_status": "deferred-for-now"
},
"storage": {
"filesystem": "btrfs",
"encryption_default": "luks2",
"snapshots": "snapper",
"os_rollback_reverts_home": false,
"home_history_default": true,
"recovery": "independent-on-disk"
},
"updates": {
"native_default": "confirmed-live-full-transaction",
"forced_reboot": false,
"automatic_metered_payloads": false
},
"defaults": {
"agent": false,
"phone_remote": false,
"external_backups": false,
"backup_backend": "restic",
"distro_telemetry": false
}
}(Trimmed; the file also covers the installer, the firewall, time and DNS defaults, and the current work scope.)
apps.json
The preinstalled application contract. Each entry names an app ID, its source and its delivery role:
{ "id": "terminal", "source": "terminal-emulator", "delivery": "native", "flatpak_id": null }Store and Terminal are delivered as native packages; the other first-party apps (Calendar, Files, Mail, Music, Reader, Remote, Task Manager, Text) are planned as project Flatpaks whose exact IDs are not yet fixed. The default browser is Zen from Flathub. The file also records that preinstallation never activates accounts or remote access.
artifacts.json
The coarse payload roles an image must provide, such as native-base, linux,
linux-lts, nvidia, uefi-boot, bios-boot, independent-recovery and one app-* role
per default app, plus the release gates that are not yet qualified and those deliberately
deferred. cli.py plan reports these; cli.py check-artifacts hash-checks an inventory
against the required roles. It is a list of roles, not a dependency closure.
development/
Reviewed, dated inputs for development builds: package seeds for headless, desktop, installer-media and gaming fixture images, dated repository snapshots, the default Flatpak list, and public package-trust pins (master identities and keyring and revocation bytes). They contain no private keys and are not shipping pins.