NixRiot Design
Design notes for NixRiot. The user-facing manual is ../README.md; the durable
internals (decisions, installer contract, update mechanics, verified package
facts) are in Internals.md. This file is the reasoning, architecture, and
planning.
Status: living document. Last updated 2026-11-20.
Why this exists
NixRiot is the fourth desktop we have built, and the first one whose foundation we trust.
- ArchRiot was an Arch installer with hand-maintained dotfiles. It taught us what the desktop should feel like.
- Omarchy then covered much of that ground, so we stopped rather than duplicate it. What we could not fix on Arch was trust: the AUR means running code from strangers, and that is not a defensible default for a desktop you have to keep patched.
- OpenBSD came next and remains the Unix we trust most, but hardware support
is narrow and a modern GPU desktop on it is a permanent fight. OpenRiot also
has a documented Hyprland migration proposal (
docs/Hyprland.mdin the OpenRiot tree) which is blocked on packaging the Hyprland stack in ports and rewriting several thousand lines of X11 integration. - NixOS already ships Hyprland, Quickshell, Wayland and the whole graphics stack, packaged and tested. Panacea already targets Hyprland.
So NixRiot keeps OpenRiot’s taste, drops the OpenBSD-specific plumbing, and lets Nix own installation and updates. The point is reproducibility: the desktop, the installer and the update path are all the same pinned inputs.
What it is
Three deliverables:
- A live image built from nixpkgs’ ISO image module on top of
installation-cd-base. It is a minimal installer, not a desktop: tty1 autologins asnixosand runsnixriot-install, the serial console gives a shell, and the image carries the flake inputs plus a curated pre-seed of the heaviest packages. Everything else comes fromcache.nixos.orgduring the install, so network is required. - A NixOS module (
modules/nixriot.nix) that declares the system: desktop, services, users, security, crypto, media, and the Panacea stack, behindnixriot.*options. - A Home Manager module that installs the Panacea trees, fish, Helix, Crush, XDG and GTK configuration, and the launcher overrides.
There is one flake on the machine. The installer writes the two files that are
specific to it (hosts/installed/local.nix and hosts/installed/hardware-configuration.nix)
and updates preserve exactly those. A separate per-machine flake was tried and
reverted: it broke installs and bought nothing.
Relationship to the parents
| Project | Role in NixRiot |
|---|---|
| NixOS 26.11 | Base system, package set, kernel, bootloader, installer tooling |
| Panacea | Desktop shell: Hyprland, Quickshell pill, wallpapers, keybindings, palette |
| OpenRiot | Feature list, visual language, fish/Helix/Crush defaults, crypto and media tooling, XDG layout |
Panacea’s config trees are carried under panacea/ and every deliberate
difference is recorded in panacea/LOCAL-CHANGES.md. Upstream is the reference,
not a build-time dependency.
NixRiot does not fork OpenRiot. It reuses the platform-neutral parts (fish, Helix, fastfetch, wallpapers, cursors, icons) and reimplements the rest declaratively.
Architecture
NixRiot/
flake.nix # nixosConfigurations.{nixriot,installed,live}, packages.{iso,installer}
Makefile
_config.yml, _layouts/, assets/ # Jekyll GitHub Pages site
docs/Design.md, docs/Internals.md, docs/Panacea-Port.md
modules/
nixriot.nix # options and top-level wiring
update.nix # nixriot-update, check timer, apply service, polkit rule
desktop/
panacea.nix # Hyprland, Quickshell, portals, PAM, VPN
theme.nix # fonts, cursors, icons
sddm.nix # login theme (unused while autologin is on)
plymouth.nix # boot splash, built from the NixRiot artwork
apps/
shell.nix # fish, zoxide, ripgrep, btop
editors.nix # Helix, gnome-text-editor, Crush
media.nix # mpv, Lollypop, transmission
office.nix # zathura, Firefox, LibreOffice (optional)
games.nix # optional curated game set
crypto/ # monero, bitcoin, wireguard, glyphriot
security/ # hardening, backup
home/
panacea.nix # Home Manager port of Panacea's install.sh
fish.nix helix.nix crush.nix xdg.nix gtk.nix launcher.nix
installer/default.nix # the TUI installer
iso/configuration.nix # the live image
panacea/ # carried Panacea tree, themes, wallpapers
hosts/
example/ # reference host config, the only hand-written hardware file
installed/ # the machine's own files, written by the installer
Installer flow
- Build with
nix build .#iso.result/iso/NixRiot.isois the image, and the symlink makes it always the newest build. - Boot it. tty1 autologins as
nixosand runsnixriot-install; the guard iniso/configuration.nixkeeps it from running on any other getty. - The installer asks for a username and a hostname, then an account password,
then checks that
cache.nixos.organswers. With no network it waits, offeringnmtui, and will not touch a disk. - It takes a disk, requires
ERASE, and asks for the LUKS passphrase twice (once to set, once to confirm; the same key file then unlocks the volume). - It partitions a 512M ESP labeled
BOOTand the rest as LUKS2nixos, formats, mounts, copies/etc/nixriotto/mnt/etc/nixriot, generates the hardware configuration intohosts/installed/, writeslocal.nixwith the user and hostname, and runsnixos-install --root /mnt --flake /mnt/etc/nixriot#installed. - It applies the account password with
chpasswd, unmounts, and reboots into the installed system.
The whole run is teed to /tmp/nixriot-install.log in the guest, which is what
to read when an install looks stuck.
Update flow
/etc/nixriot is a copy of the project; hosts/installed/local.nix is the
machine’s. nixriot-update clones https://github.com/<owner>/<repo> into a
temporary directory, rsync -a --delete that into /etc/nixriot while
excluding those two files, records the new revision in /etc/nixriot-revision,
and runs nixos-rebuild switch --flake /etc/nixriot#installed. Because the
rsync replaces the whole tree, anything edited in place under /etc/nixriot
(including flake.lock) is discarded by the next update. Details, including why
the revision is a real file rather than something derived from the flake, are in
Internals.md.
Theming
panacea/hypr/palette.conf is the single palette: terracotta accent #c65a47,
background #1b2b34, foreground #e5d1c5. hypr/scripts/palette.sh spreads it
over fastfetch, foot (including the full 16-colour ANSI set), fish, btop and
neovim, plus Zed and Obsidian when their configs exist, and switch_theme.sh
puts the wallpaper behind the login screen. Firefox is deliberately not themed.
Because these files are rewritten at run time, Panacea’s config trees are copied
into ~/.config as writable files rather than Home Manager store symlinks.
palette.sh’s output is logged to ~/.cache/panacea/palette.log so a failure is
visible instead of leaving stock colours in place.
Testing
QEMU is the test harness. The recipe, the traps (-display gtk repaint under
Wayland, never putting a qcow2 in /tmp), and the serial-console trick for
reading the guest’s install log are all in Internals.md.
Feature parity
“Port” means reimplemented declaratively. “Reuse” means the existing config or asset is carried.
| OpenRiot feature | NixRiot | Notes |
|---|---|---|
| i3 tiling | Replaced | Hyprland via Panacea |
| Polybar | Replaced | Panacea pill (Quickshell) |
| Rofi launcher | Replaced | Panacea launcher and launchpad, with a curated app list |
| Dunst notifications | Replaced | Panacea notification daemon |
| i3lock | Replaced | Panacea lock screen, via PAM swaylock |
| picom, feh, maim | Replaced | Hyprland compositor, hyprpaper, grim/slurp |
| picom rounded corners | Replaced | Hyprland rounding = 8, matching OpenRiot’s radius |
| fish + prompt | Port | Own fish_prompt in home/fish.nix, coloured from the palette |
| Helix | Reuse | nixpkgs helix |
| Crush | Port | nixpkgs crush |
| fastfetch + motd | Reuse | Home Manager |
| Bibata cursor, Kora icons | Reuse | Packaged assets |
| Nerd Fonts | Reuse | nixpkgs fonts |
| Wallpaper sets | Own | NixRiot set, panacea/hypr/wallpaper |
| Screenshots | Port | grim, slurp, wl-clipboard |
| Screen recording | Port | wf-recorder |
| Clipboard history | Port | cliphist |
| Music player | Replaced | Lollypop (MPRIS), because the pill reads MPRIS and mpd does not |
| Video | Port | mpv with mpvScripts.mpris, so the pill sees it |
| Monero GUI, Bitcoin Core | Port | nixpkgs, opt-in |
| WireGuard | Port | networking.wireguard |
| Mullvad | Port | daemon plus the GUI |
| Transmission | Port | nixpkgs transmission_4-gtk |
| Proton Drive sync | Port | rclone |
| Signal (gurk) | Port | nixpkgs gurk-rs, with a launcher entry |
| LibreOffice, Firefox | Port | nixpkgs |
| Backup and restore | Port | restic |
| Disk manager | Port | gnome-disk-utility or gparted |
| MAC randomization | Port | NetworkManager setting |
| SSH hardening | Port | NixOS options |
| XDG user directories | Port | Home Manager |
Crypto config (crypto.toml) |
Replaced | nixriot.crypto.* options in local.nix |
| Control center | Replaced | Panacea settings |
| Games bundle | Optional | Curated subset, opt-in module |
| Night light | Port | hyprsunset, off by default, 4000K and SUPER+N as OpenRiot used |
| Idle lock | Port | hypridle, ten minutes, OpenRiot’s xautolock -time 10 |
Dropped, and why
| OpenRiot item | Reason |
|---|---|
pkg_add installer and OpenBSD firmware |
NixOS has no equivalent and does not need one |
| Xenodm, Xenocara, X11 hardening | The Wayland stack replaces X11 |
| OpenBSD version tracking | NixOS channels and flake locks replace it |
openriot Go installer paths |
Nix modules replace imperative installs |
| GRUB and its theme | NixRiot boots with systemd-boot |
| 3D printing (PrusaSlicer, OrcaSlicer) | Cut; not part of the desktop |
| mpd and rmpc | No MPRIS, so the pill and the media keys could not see them |
| yt-dlp | Pulled in a 139 MB Deno runtime for a feature nothing needed |
| Zed | Available (zed-editor) but not installed; Helix and Crush are the defaults |
| SDDM theme | Autologin means there is no greeter to theme |
| QtWebEngine | 419 MB of Chromium for one lazy chat page in the pill |
Open work
Ordered by priority. The live list is in Internals.md and AGENTS.md.
- Install on real hardware. Nothing has been installed on a physical machine yet, which is what leaves the idle lock, the lid behaviour and the night light unverified.
- gvfs MTP for phones, untested.
- A binary cache for the flake’s own outputs, so installs stop building our
derivations (the trimmed
linux-firmware, cursors, fonts, splash). - Offline installs, if they are wanted at all. Today the image is a netinstall by design, because GitHub caps release assets at 2 GiB.
- Fingerprint, done the Omarchy way. Detect the reader from sysfs, invite
enrolment once by notification, and enable PAM with a clamshell gate ahead of
pam_fprintd. All of it is opt-in and off today. The design, and why the gate is not optional, are inInternals.md(decision 18). - A fat ISO, if the substitution wait is worth 4 GB. Pre-seeding the whole
closure turns the installer’s network phase into a local copy. A full pre-seed
is about 4 GB, and GitHub caps each release asset at 2 GiB, so the image would
ship split (
split -b 1900M, rejoined withcatand checked againstSHA256SUMS) and want an 8 GB stick. It does nothing for the local builds, which need the cache in item 3 either way. - Crypto holdings in the pill. OpenRiot showed prices from a user-owned
crypto.toml; the port lost it. The shape is decided: a script, a poll, a glyph in the collapsed pill and a page of holdings. See decision 20 inInternals.md.
Milestones
| Phase | Deliverable | Exit criteria | State |
|---|---|---|---|
| 0 | Flake skeleton | nix flake check passes, system builds |
done |
| 1 | Panacea Home Manager module | Hyprland session starts, pill runs, keybindings work | verified in QEMU |
| 2 | Theme, assets, splash | Fonts, cursors, icons, wallpapers, Plymouth | verified in QEMU |
| 3 | OpenRiot app modules | fish, Helix, Crush, media, crypto, security | verified in QEMU |
| 4 | ISO and installer | ISO boots, installs, first boot reaches the desktop | verified in QEMU, not on hardware |
| 5 | Parity audit | Every parity row verified or explicitly cut | pending |
| 6 | Release | Tagged flake, checksums, install notes | pending |
Risks
- The ISO carries the repo. Any repo change needs an ISO rebuild before an installed system can see it.
- Panacea tracks upstream closely. Its QML needs
QtMultimediaon the QML import path or the shell will not load, and its scripts assume Arch paths in places. - Distribution size. The image is 1.97 GiB against GitHub’s 2 GiB per-asset limit. The pre-seed list is what keeps it there, and it is a size decision, not a speed one.
- UEFI only. systemd-boot, Secure Boot off, no BIOS.
- The installer builds our own derivations, because they are in no binary cache. That is the slow part of an install.
hardware.firmwareismkForced to a trimmed list; anything that adds firmware must be appended there.- Upstream Panacea is a pin, not a following.
panacea/UPSTREAMis the revision that has been read; fixes upstream of it are only taken when someone reviews them and ports them by hand. - The idle lock, the clamshell lid and the night light are unverified. They were added after the last ISO and need a session, and the lid needs a real lid switch.
- Cosmetic
buildEnvcollisions exist forgvfsandbitcoind.
Non-goals
- Replacing Panacea upstream. NixRiot packages it, it does not fork it.
- Replacing OpenRiot on OpenBSD. NixRiot is the Linux sibling, not a port.
- NVIDIA, ARM, or Secure Boot.
- Being a general-purpose distribution. It is one desktop, deliberately.