Repository navigation
Better way to immutability #11453
jimaegirson
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The idea: OSes break because you edit them live. Fix that by combining three proven pieces — Nix's pure derivations (every change is a repeatable, isolated transaction), MicroOS-style transactional updates (read-only base, atomic swap, auto-rollback), and OCI-style content-addressed artifacts (deploy = pull, not reinstall). Humans and AI agents propose changes the same way; the system builds, tests, and logs everything before it lands.
How:
Packaging — Nix as a self-hosted derivation backend, not NixOS.
omarchy-pkg-addstays the interface. Flatpak keeps desktop apps. AUR packages build on-demand, wrapped (not rewritten) inside Nix, with fixed-output derivations for network-fetching builds and shims for install hooks. Unverified local builds stay possible outside the shared cache. Dev toolchains live in Distrobox/Toolbox.Transactions — every change, human or agent, goes stage → build → verify → log → commit → rollback-if-fail. Append-only, signed log; rollback writes a new entry, never erases. A repair agent may only pick from a fixed list of sanctioned fixes — no improvising.
Foundation — Btrfs + transactional-update ships first (MicroOS model, not bootc/ostree — cheaper, keeps pacman intact). Storage talked to only through one narrow interface, so it's swappable later. Every transaction gets tested on physical GPU hardware before shipping — VMs miss driver failures.
Build order: transaction log → AUR wrapper pipeline (incl. install hooks) → physical GPU rollback test → self-healing agent, gated behind the first three.
Conclusion: Nix for building packages, Btrfs/transactional-update for surviving updates, one audited pipeline for every change — human or AI. Same UX, provable rollback, nothing new to learn.
All reactions