What is archix?
archix is a system configuration tool for Arch Linux and Arch-based distros. CachyOS is the first-class target. Other Arch-based systems such as EndeavourOS should work, but only Arch and CachyOS are tested. You describe the whole machine in Lua: packages from the official repos, the AUR and third-party repos like CachyOS, plus /etc files, systemd units, users, kernel parameters and dotfiles. archix makes the system match that description, records exactly what it installed in a lockfile, and keeps every switch as a generation you can roll back to.
If you know NixOS, the idea is familiar: a declarative config, a lockfile and rollback. The difference is that archix runs on Arch’s real packages and the AUR. There is no Nix store, no derivations and no second package ecosystem to learn.
return { repos = { "core", "extra", "multilib" }, packages = { "firefox", "steam", "neovim" }, users = { me = { groups = { "wheel" } } }, home = { user = "me" }, programs = { kitty = { enable = true, settings = { font_size = 11 } } },}$ sudo archix switchThat’s the loop: edit Lua, switch, and the running system follows, live; go back if you don’t like it. You don’t start from an empty file, either: sudo archix init captures the machine you already have into a config and a lock that match it exactly.
Three pillars
Section titled “Three pillars”Declared
Section titled “Declared”Your config lives in /etc/archix by default and is laid out like a neovim config: an init.lua, one module per host, and modules you share between hosts. Options have types, defaults and descriptions, and archix rejects anything it doesn’t know:
$ archix differror: `programs.kity`: option does not exist (set in lua/hosts/desktop/init.lua); did you mean `programs.kitty`?Evaluation is pure. Your Lua can’t run commands or read random files, so the same config and lock give the same system on every run. Read more in Configuration.
Locked
Section titled “Locked”Arch is a rolling release. “Install git” means something different every day. archix pins your official packages to one day of the Arch Linux Archive, so “install git” means “install git as it was on 2026-10-14”, for as long as you want it to:
version = 1
[hosts.desktop]date = "2026-10-14"repos = ["core", "extra", "multilib"]declared = ["firefox", "git", "neovim", "steam"]
[hosts.desktop.packages]git = { version = "2.51.0-1", repo = "extra", file = "git-2.51.0-1-x86_64.pkg.tar.zst", sha256 = "e6674e96c7bbc318a40c1fd0008a6b00688683ce3d1b324544ebc9380885d098", explicit = true }You move forward when you choose to, with archix update. Read more in The lockfile.
Reversible
Section titled “Reversible”A switch first prepares everything (the lock, AUR builds, downloads, rendered files) without touching the system, and shows what changed in the config and in the plan since the last switch. Then it applies the result in place, live, with no reboot. The result is a generation: the exact package set, the managed files, users and services, and the git tree of your config. archix revert applies an older generation’s record again, from archix’s cache and the Arch Linux Archive.
On btrfs, archix also takes a read-only snapshot of the root before every switch and every plain pacman transaction. With systemd-boot 260 or newer, recent snapshots get boot entries with boot counting: an update that leaves the machine unbootable, hung or with failed units falls back by itself to how the system last booted fine, read-only, and archix rollback N keeps a snapshot for good. Read more in Snapshots, Boot and fallback, Generations and Safety; What falls back by itself has the guarantees per bootloader and filesystem, and Limitations and failure modes says where they stop. Feature status says which features are shipped, partial or planned, and what tests each.
How it relates to pacman, yay and NixOS
Section titled “How it relates to pacman, yay and NixOS”pacman still does the installing. archix runs every transaction through the pacman binary, on the running system. Arch stays Arch: plain pacman -S and -Syu keep working, archix snapshots the root before each such transaction, and the next switch asks whether to declare what you installed. Strict mode turns that off for those who want every change to go through the config. See pacman and yay.
yay and paru keep working, but you won’t need them. archix is an AUR helper with the flags you already type: archix -S, archix -Ss, archix -Syu, archix -R, and bare archix for a full update. The difference is that AUR build recipes are shown for review, locked by commit, built in a clean chroot and added to your config. See The AUR.
NixOS is the inspiration. Priorities, the module system and the generation model will feel familiar, and archix’s priorities even use the same numbers. See Coming from NixOS.