archix is being rescoped. Don't install it yet.The released archix-git is the old model, which replaced packages and boot entries itself and broke a real install. The new design leaves packages to pacman and libalpm and rollback to snapper, and adds a diff that shows exactly what a switch will change. These docs describe the old model until the new one ships.Read the new scope.

Update Arch. Roll it back.

Declare your whole system in one Lua config: packages, AUR, services, /etc, dotfiles. archix locks your packages to exact versions, turns every switch that changes something into a generation, and rolls back in one command. Built for Arch and CachyOS.

Changes take effect at the next boot, even archix install htop. Needs systemd-boot: GRUB and Limine aren't supported.

git clone https://aur.archlinux.org/archix-git.git && cd archix-git && makepkg -si
Star on GitHub
lua/hosts/desktop/init.lua
return {
  repos = { "core", "extra", "multilib" },
  packages = { "steam", "mangohud", "obs-studio", "protonup-qt" },
  boot = { loader = "systemd-boot" },
  kernel_params = { "root=LABEL=arch", "rw" },

  users = { me = { groups = { "wheel" }, shell = "/usr/bin/zsh" } },
  home = { user = "me" },

  programs = {
    kitty = {
      enable = true,
      font = { name = "JetBrainsMono Nerd Font", size = archix.force(11) },
    },
  },
}
terminal

archix status

current generation: 41 (snapshot 2026-10-09)

the system matches the lock

  1. 38Sep 18
  2. 39Sep 25
  3. 40Oct 02
  4. 41Oct 09
  5. 42Oct 15

Current generation: 41

Declared. Locked. Reversible.

Declared

One config for every machine, laid out like a neovim config. Modules declare typed options, so a typo is an error with a suggestion, not a setting that silently does nothing.

archix diff
error: `programs.kity`: option does not exist
       (set in lua/hosts/desktop/init.lua); did you mean
       `programs.kitty`?

Locked

Official packages are pinned to a dated Arch Linux Archive snapshot, AUR packages to a commit. Commit the lock and your other machines install the same versions, except -git and third-party packages a cache doesn't hold.

archix.lock
[hosts.desktop]
date = "2026-10-15"
repos = ["core", "extra", "multilib"]
declared = ["kitty", "mangohud", …]

[hosts.desktop.packages]
mesa = { version = "1:25.3.0-1", repo = "extra", … }

Reversible

Every switch that changes something is a generation, and on btrfs a snapshot of the root before it, with a boot entry signed when Secure Boot is set up. Revert from the terminal, or pick a snapshot at boot: same packages, kernel and /etc.

systemd-boot
› Arch Linux (archix)
  archix snapshot 6, read-only: 2026-10-30, generation 41

Live updates, with a way back.

A switch applies the config to the running system, in place, with no reboot. On btrfs it first takes a read-only snapshot of the root, and archix's pacman hook does the same before every plain pacman run. A boot that breaks falls back to the system as it last booted fine; on ext4, archix is configuration management with reverts.

A snapshot costs what the update changes, and archix prunes them by count and free space.

terminal
$ sudo archix -Syu
upgrade    mesa 1:25.3.0-1 -> 1:25.3.1-1
:: applying generation 43
switched to generation 43 (snapshot 2026-10-15)

Your AUR helper, too.

The everyday yay commands work. Every AUR build runs in a clean chroot at the locked snapshot date and gets cached. You read every file of a recipe on first install and the diff on updates, and archix tells you when a package changed maintainers.

Two letters is enough: ax is the same command, so ax -Syu works too.

pacman-style commands
archixFull update, like running yay with no arguments
archix <terms>Search the repos and the AUR, pick from a numbered list, install and declare the picks
archix -S <pkg>Install from the repos or the AUR, and add it to your config
archix -Ss <query>Search the repos and the AUR
archix -SyuMove the lock to the newest archive snapshot and AUR recipes, then switch
archix -R <pkg>Remove it from the system and from your config

Everything on the machine, in one place.

Packages
Official repos, the AUR, third-party repos like CachyOS, your own PKGBUILDs, and official packages with your patches
/etc
Any file under /etc, written atomically and tracked by hash
systemd
System and user units enabled or disabled, started and stopped by the switch
Kernel
Kernel parameters, sysctl, modprobe and udev rules
Users
Users and groups. archix never sets passwords unless you declare them, and a rollback carries the accounts and passwords you have now into the snapshot it keeps
Dotfiles
Copied files with recorded hashes, so edits made outside archix show up in diff, or live links into your config repo
Apps
programs.* modules, six of them ported from Home Manager and checked byte for byte against its tests, plus writers for toml, json, yaml, ini, kdl and more
Hooks
Activation scripts that run after every switch and revert, and on_change scripts for files that changed

When things go wrong.

What archix can't do yet is on the limitations page.

No reinstall
archix init takes over the system you already have and locks to what is installed, so the first switch changes nothing, or tells you what it would.
Power cuts
On btrfs with systemd-boot, a power cut during archix switch or a plain pacman or yay transaction never leaves the machine unbootable: archix snapshots the root before it, counts the next boot and marks the update unfinished until it is on disk. Cuts at every step of a switch are tested in VMs.
No live USB
A broken update falls back by itself to the snapshot of how the system last booted fine, read-only, and archix rollback N keeps it. A rescue entry in the menu repairs the rest.
Bad updates
With systemd-boot 260 or newer, a boot that does not reach its target or fails the health check is passed over by boot counting, even with nobody at the machine.
Plain pacman
pacman, yay, paru and pamac keep working, and /usr stays writable. archix snapshots every plain transaction, and adds what it installed to your config or keeps it untracked, as you choose.
Live
archix switch applies in place, with no reboot; a new kernel takes effect at the next one.
Tested
VM-only so far, not yet on real hardware. Tested in QEMU VMs on btrfs and ext4: power cuts during pacman and every step of a rollback, broken glibc, hung and failing boots falling back unattended, and full disks.

Coming from NixOS?

You already know the ideas. Keep the declarative config, the lockfile and the rollback, on Arch's packages instead of derivations.

Read the migration guide

NixOSarchix
configuration.nixinit.lua
flake.lockarchix.lock
nixos-rebuild switcharchix switch
nixos-rebuild switch --rollbackarchix revert
lib.mkDefault / lib.mkForcearchix.default / archix.force
Home Manager programs.*programs.*, some ported from Home Manager
nix-collect-garbagearchix gc
nixpkgsArch repos, the AUR, CachyOS

Three commands from here.

  1. Bootstrap from the AUR

    git clone https://aur.archlinux.org/archix-git.git && cd archix-git && makepkg -si

    archix init declares archix-git like any AUR package, so archix is in your generations and rolls back with them.

  2. Capture your system

    sudo archix init

    Reads your packages, services, changed /etc files, users and dotfiles into a config, locked to what is installed. No reinstall.

  3. Switch

    sudo archix switch

    Applies in place. On btrfs it lays the root out for snapshots; from the next boot, every switch and pacman run has one to fall back to.