Skip to content
CyphrRiotPublic

About

A Sovereign Linux Riot Desktop

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

NixRiot

Status Version Platform Shell UI Last Commit Code Size

Code Language Language Donate BTC

The NixRiot desktop: the pill, its settings pages, and a terminal

Navigate this guide

This file is the manual. The reasoning is in docs/Design.md; the long version of the story is in the article on X.


Philosophy of NixRiot

We have built this desktop four times.

ArchRiot came first: Arch, an installer, and dotfiles maintained by hand. It got the feel right. Omarchy then did most of that better than we were going to, so we stopped instead of shipping a second copy of the same idea. What Arch never fixed was trust. Installing from the AUR means running code written by strangers, which is a poor foundation for a machine that stays online and patched.

OpenBSD came next. It is still the Unix we trust most, and OpenRiot is what grew out of it: fish, Helix, a tiling desktop, and a preference for small, sharp tools. The trouble is hardware. Modern laptops and GPUs become a permanent argument on OpenBSD, and a desktop that fights the machine is not one you can hand to someone else.

NixOS supplied the missing piece. Hyprland and Quickshell are packaged and tested, Panacea already targets them, and one pinned flake builds both the installer image and the system it installs. The ISO and the machine come from the same inputs, so the image you download is the system you end up running.

NixRiot is that combination: Panacea's shell, OpenRiot's defaults where they still make sense on Linux, and Nix owning installation and updates. It now runs on about two thousand machines, much of it hardware we have never touched.


The usual free software warning

This installer erases the disk you point it at. It partitions, encrypts, and formats without asking twice. Back up anything you care about first.

NixRiot ships no wallet files and no secrets. You own those.


What you get

  • Hyprland with the Panacea pill (Quickshell): launcher, launchpad, overview, clipboard, notifications, settings, power menu, lock screen.
  • fish with a prompt of its own (hostname, directory, git branch, exit status), plus the OpenRiot aliases and functions.
  • Helix (the default editor), Crush, and a plain text editor.
  • Firefox and zathura. Firefox opens with the Matte Black theme, installed for every profile. LibreOffice is optional: install it from Settings → Installs, or set nixriot.office = true; in /etc/nixriot/hosts/installed/local.nix and run rebuild. LibreOffice opens with the dark theme on its first launch.
  • Media: mpv, Lollypop, and Transmission, which is installed by default and can be removed from Installs.
  • Signal Desktop, with gurk for the terminal, which is the only Signal OpenRiot could have: OpenBSD has no desktop client.
  • Crypto (opt-in): Monero GUI, Bitcoin Core. GlyphRiot is installed by default.
  • Mullvad VPN: the daemon and the desktop app are installed and enabled by default, with the GUI in the app launcher and the mullvad command line.
  • Security: firewall, sysctl hardening, MAC randomization, restic and rclone for backups. The SSH server is off by default and is switched on in Settings → Security → Remote Access, which rebuilds the system with password and root logins refused.
  • The NixRiot wallpaper set (39 WebP images, 01.webp through 39.webp).
  • A night light for the screen, off until you switch it on (SUPER + N).
  • A password vault (SUPER + SHIFT + P), encrypted with your login password. It can be turned off in Settings → Controls → Launcher.
  • Full-disk encryption (LUKS2) on the root volume, chosen during install.

Download

Grab the latest image and write it to a USB stick. No build tools required.

Images from 2.34 through 2.55 were withdrawn: their installer could not mount the live store. Use 2.56 or newer.

sudo dd if=NixRiot.iso of=/dev/sdX bs=4M status=progress oflag=sync

Each release also publishes SHA256SUMS and a detached SHA256SUMS.sig, signed with the same SSH key that signs the release tags. Verify the signature before trusting the checksum:

ssh-keygen -Y verify -f allowed_signers -I CyphrRiot@protonmail.com \
  -n file -s SHA256SUMS.sig < SHA256SUMS
sha256sum -c SHA256SUMS

allowed_signers ships in the repository and stays inside the installed tree.

It is a network installer: it carries the installer, the project and the biggest parts of the desktop, and downloads the rest while it installs. It needs an internet connection.

Prefer to build the image yourself? On an installed machine, Settings → Maintenance → Personal Image builds one with your settings; for a build from source, see Advanced, at the end of this file.


Install

A network connection is required. The installer builds the target system from the flake and fetches the rest from cache.nixos.org, and it will not touch a disk until that answers.

  1. Boot the USB stick (disable Secure Boot first if the firmware refuses it).
  2. It comes up on a text console, logs in as nixos, and starts the installer by itself.
  3. It asks for a username, a hostname for the machine, then a password for that user. The username uses lowercase letters, digits, underscore or hyphen, and does not start with a digit or underscore. The hostname defaults to nixriot if you press Enter, and takes lowercase letters, digits and hyphens.
  4. It checks that it can reach cache.nixos.org, and will not touch a disk until it can. If the check fails it offers retry, w to run nmtui, or skip; skip is for a machine whose store already holds everything, not for a broken connection.
  5. It lists the disks it can see. Type the target disk, for example /dev/nvme0n1.
  6. Type ERASE to confirm. This is the point of no return.
  7. Enter the LUKS passphrase twice (once to set it, once to confirm). It is reused to unlock the new volume, so there is no third prompt. You will type this at every boot, so pick something you can remember and write it down somewhere safe.
  8. It partitions (512M ESP labeled BOOT, the rest as an encrypted nixriot volume with a nixriot-root filesystem), formats, mounts, and runs nixos-install.
  9. After formatting it writes a LUKS header backup to /root/nixriot-luks-header.img and warns you to copy it to a USB stick or another machine before rebooting. Keep that file: if the header is damaged, the passphrase alone cannot open the disk. The live system is wiped on reboot.
  10. When nixos-install finishes, it unmounts and reboots into the installed system. Remove the USB stick.

The install builds the target system from the flake and downloads it from cache.nixos.org, so it needs a network connection. Everything is logged to /tmp/nixriot-install.log.


Requirements

  • x86_64 machine that boots UEFI.
  • A USB stick of at least 4 GB.
  • A target disk that can be erased.
  • An internet connection during install.

Installing does not require Nix on your machine. The ISO performs the install, verifies what it needs, and downloads the rest from cache.nixos.org. You only need Nix, with flakes enabled and about 40 GB free, if you build the image yourself.


Supported hardware

NixRiot targets x86_64 machines with an Intel or AMD GPU. Hyprland and Quickshell need working OpenGL under Mesa, and Mesa is what the open-source Intel and AMD drivers use.

  • GPU: Intel (i915 or Xe) and AMD (amdgpu), integrated or discrete. NVIDIA needs proprietary drivers and is not supported or tested.
  • CPU: Intel and AMD x86_64. ARM is not built.
  • Drivers and firmware: hardware.graphics is enabled, and the live image ships the same curated linux-firmware set as the installed system (modules/nixriot.nix): every x86 Wi-Fi, Bluetooth, GPU and audio family is kept, including NVIDIA, while datacentre NICs and the Qualcomm qcom blobs are dropped to save space. An unusual network card may need it added back.
  • Boot: UEFI only, via systemd-boot. Secure Boot must be off.
  • Out of scope: NVIDIA, ARM, and Secure Boot. Fingerprint readers are off by default but supported through fprintd; see the note below.
  • Installed systems: the installer generates the hardware configuration for the machine it is run on, so the disk and firmware modules are correct.

Fingerprint reader

Off by default. To try it, enable the daemon without touching PAM first, in /etc/nixriot/hosts/installed/local.nix, beside nixriotUser and nixriot.hostName:

nixriot.fingerprint.enable = true;

Rebuild, then run fprintd-enroll and fprintd-verify as your user. Only if those succeed, add fingerprint auth to login, sudo and polkit:

nixriot.fingerprint.enable = true;
nixriot.fingerprint.pam = true;

If the reader needs Touch OEM Drivers, set nixriot.fingerprint.tod.enable = true and point nixriot.fingerprint.tod.driver at the matching package (for example pkgs.libfprint-2-tod1-goodix). Support comes from libfprint; a reader it does not know cannot be made to work.

One thing to expect once PAM is on: with the lid shut, the reader is out of reach, and PAM asks for a finger before falling back to the password. NixRiot does not gate on the lid yet; that, and detecting the reader automatically instead of leaving it off, is planned.


First boot

The machine boots in text mode (no splash). The LUKS passphrase prompt appears on the console, then the session starts on its own: NixRiot logs the desktop user in automatically, so the login screen is skipped. The lock screen (SUPER + L) is what protects the machine, and if you log out you land on the themed login screen. sudo asks for the password you set during install.

The NixRiot desktop after the first boot, with the island expanded

NixRiot ships no default account. The installer creates the user for you, with the password you chose.

To change or reset your password, log in and run:

passwd

To rename the machine, set nixriot.hostName in /etc/nixriot/hosts/installed/local.nix and run rebuild. /etc/hostname is generated by NixOS and is read-only; edits there do nothing.


Keybindings

SUPER is the modifier. The map lives in panacea/hypr/lua/keybindings.lua; the settings panel (SUPER + I) writes overrides to panacea/hypr/lua/binds_data.lua, which survives updates.

Shell and launcher

Keys Action
SUPER + D or SUPER + A Launcher
SUPER + G Launchpad
SUPER + Tab Overview
SUPER + / Shortcut list
SUPER + I Settings
SUPER + Z Control center
SUPER + SHIFT + N Notifications
SUPER + SHIFT + V Clipboard history
SUPER + Escape Power menu
SUPER + . Run a command
SUPER + SHIFT + H Put the island away, or bring it back
SUPER + SHIFT + P Password vault
SUPER + SHIFT + I Installs
SUPER + , Pomodoro timer, start or pause

Apps and windows

SUPER + F opens Panacea Files, the only file manager: folders opened from another application land in the same view.

Keys Action
SUPER + Return Terminal (foot)
SUPER + SHIFT + Return Floating terminal
SUPER + T System Monitor (btop)
SUPER + B Firefox
SUPER + F Panacea Files
SUPER + E Panacea Files (alternate)
SUPER + SHIFT + E Yazi in the terminal
SUPER + O Text editor
SUPER + C Crush
SUPER + = Calculator (floating, centered)
SUPER + SHIFT + K Music player (Lollypop)
SUPER + Q Close window
SUPER + W Toggle floating
SUPER + SHIFT + Space Float, resize, center
SUPER + J Toggle split
SUPER + SHIFT + F Fullscreen
SUPER + L Lock
SUPER + SHIFT + T or SUPER + SHIFT + D Wallpapers
SUPER + SHIFT + R Backup & Restore
SUPER + SHIFT + S or Print Screenshot (region)
SUPER + P Screen recording
SUPER + ALT + Right Float the active window on the right half
SUPER + [ / SUPER + ] Narrower / wider
SUPER + SHIFT + [ / SUPER + SHIFT + ] Shorter / taller
SUPER + SHIFT + F12 Screen off
SUPER + N Night light on or off
SUPER + M or XF86Mail Proton Mail
SUPER + X X (compose with SUPER + SHIFT + X)

gurk, the Signal terminal client, is CLI-only: type gurk in a terminal.

Workspaces and movement

Keys Action
SUPER + 1..0 Focus workspace
SUPER + SHIFT + 1..0 Move window to workspace
SUPER + Space First empty workspace
SUPER + S Special workspace magic (scratchpad, toggle)
SUPER + arrows Focus window
SUPER + SHIFT + arrows Move window
ALT + arrows Resize window
SUPER + SHIFT + A Pack workspaces
SUPER + mouse wheel Next or previous workspace
SUPER + drag Move window
SUPER + right drag Resize window

Media and hardware

Keys Action
XF86AudioRaiseVolume / XF86AudioLowerVolume Volume up / down
XF86AudioMute Mute
XF86AudioMicMute Mute the microphone
XF86AudioPlay / XF86AudioPause Play / pause
XF86AudioNext / XF86AudioPrev Next / previous track
SUPER + XF86AudioRaiseVolume / SUPER + XF86AudioLowerVolume Next / previous track
XF86MonBrightnessUp / XF86MonBrightnessDown Brightness
Right Alt (hold) Voice to text

Closing the lid locks the screen and suspends, unless a second display is attached: a closed lid with an external monitor is a machine still in use, so it stays awake and the internal panel is switched off. The lock comes from hypridle's before_sleep_cmd. With no input, the display turns off after ten minutes, the screen locks after fifteen, and the machine suspends after twenty. Turn on Stay awake in the control center to stop all three, and lid-close suspend, until you turn it off again.


What is installed

Everything is declared in modules/. The example and installed hosts enable the full set.

Module Packages
apps/shell.nix fish, zoxide, ripgrep, fd, fzf, btop, fastfetch, lsd, bat, pv, jq, signal-desktop, gurk-rs
apps/editors.nix helix, gnome-text-editor, crush, git
apps/media.nix mpv, lollypop, ffmpeg, ffmpegthumbnailer, cava, transmission (on by default)
apps/office.nix zathura, firefox with the Matte Black theme, file-roller, GNOME Calculator, GNOME Disks, libreoffice (optional)
desktop/panacea.nix hyprland, quickshell, hyprpaper, hyprsunset, hypridle, foot, grim, slurp, wl-clipboard, cliphist, wf-recorder, yazi, swappy, mpvpaper, and the rest of the shell's runtime (tesseract with nixriot.ocr)
desktop/theme.nix JetBrains Mono Nerd Font, Material Design icons, Noto fonts, Bibata cursors, Kora icons
crypto/* monero-gui, bitcoin and bitcoind, glyphriot, wireguard-tools
security/* restic, rclone, firewall, opt-in SSH, sysctl hardening
apps/games.nix optional, off by default

Shell aliases and quick reference

These come from home/fish.nix, which is OpenRiot's fish configuration adapted for NixOS.

Command Does
vim, vi Helix (hx)
helix hx
signal Signal TUI (gurk)
ls, ll, la lsd, lsd -l, lsd -la
music lollypop
rebuild sudo nixos-rebuild switch --flake /etc/nixriot#installed
more more -e
dum top 10 largest items in the current directory
!! expands to the previous command
Ctrl+O inserts the previous command

The prompt shows hostname, working directory, git branch, and a non-zero exit code, with the Linux glyph in the accent colour driven by the Panacea palette.

Control center

Panacea's settings live in the pill. SUPER + I opens them; every section is also reachable from the pill's expanded island. SUPER + Z opens the control center (Wi-Fi, Bluetooth, audio, power profile, and Stay awake, which stops the screen blanking, the machine sleeping and lid-close suspend until you turn it off). SUPER + / lists every current binding.

Settings → Island → Bar and Island chooses whether the island sits at the top or the bottom of the screen, and turns on notch mode and auto-hide. The bottom placement opens its panels above the capsule instead of below it.

The Installs page in Settings, listing the optional applications

Installs

Optional applications live in Settings → Installs: LibreOffice, the games collection, Transmission, Monero GUI, Bitcoin Core and Claude Code. The search box matches package names from the pinned nixpkgs, so a package that is not in that list, or anything else from nixpkgs, can be installed by name. Install and Remove run a rebuild in the background; the button shows what it is doing. Your selection is kept in /etc/nixriot/hosts/installed/features.nix, which an update preserves, and the same switches exist in local.nix (nixriot.office, nixriot.games, nixriot.crypto.monero, nixriot.crypto.bitcoin, nixriot.claude) if you prefer to edit there. The games collection is off by default; LibreOffice is about 1 GB.

Your own packages

Anything else comes from nixpkgs by name, in the same file, and an update keeps it. Claude Code, for example:

{
  nixriotUser = "riot";
  nixriot.packages = [ "claude-code" ];
}

Then run rebuild. Names are nixpkgs attribute names, so "kdePackages.kate" works, and a name that does not exist fails the build and tells you which one. Claude Code is unfree; NixRiot allows unfree packages, the same as it does for Crush.


Desktop widgets

The wallpaper carries a set of cards: date, clock, weather, system load, a pomodoro timer, the music player, and a scratchpad. Every one is optional and switched in Settings → Appearance → Widgets. Clicking a card changes its mode or starts it; right-clicking usually does the other thing.

The pomodoro is 25 minutes of focus and 5 of break: click the tomato to start or pause, double click to reset, or press SUPER + , from anywhere.

The desktop widgets, including the pomodoro timer and the music player


Wallpapers

The NixRiot set (39 WebP images, 01.webp through 39.webp) ships in panacea/hypr/wallpaper/, default 02.webp. Change the wallpaper from Settings → Appearance → Wallpapers, or with SUPER + SHIFT + T or SUPER + SHIFT + D. The manifest is panacea/hypr/wallpaper/WALLPAPERS.md.

Adding an image means adding a licence entry to that manifest. Live video wallpapers are not shipped.


Displays

Every connected screen is listed under Settings → Devices → Display. A screen can be switched off from that page: it shows as off and sends no video until you switch it back on. The setting survives a reboot, so a laptop panel docked to an external monitor stays off across reboots.

Placement puts a second monitor to the right, left, above or below the first, or mirrors it onto the same picture at the first monitor's resolution. Mode, scale (limited to the values the compositor accepts), brightness, rotation and which screen the island sits on are all per screen.

The Display settings page, with the internal panel switched off


Night light

Off by default. SUPER + N switches it, or Settings → Devices → Display → Night light in the pill, where the temperature sits between 2500K and 6500K and an optional schedule turns it on in the evening and off in the morning. 4000K is the default when it comes on, the same temperature OpenRiot used.

The filter is applied by hyprsunset, so it is part of what the compositor draws: screenshots and recordings carry it. The pill shows a moon when it is on.


Password vault

SUPER + SHIFT + P opens the vault. It holds labelled logins and passwords, encrypted with GPG's symmetric AES-256 at ~/.local/share/panacea/vault.enc, whose directory is mode 700. The store is authenticated, so a modified file is refused instead of decrypted. The password that unlocks it is your system password, checked through PAM, so there is no second password to remember or lose. The vault locks itself after fifteen minutes without use.

If the key does nothing, the feature is off: turn on Password manager in Settings → Controls → Launcher.

The same store is reachable from a terminal through ~/.config/panacea/scripts/vault.sh load, save and wipe; load and save read the password on stdin.


Weather

The weather card and the island's optional weather row read OpenWeatherMap. Create a free API key at openweathermap.org, then open Settings (SUPER + I) → Appearance → Weather and fill in the key and a city (a name like Portland, or a numeric ZIP). Choose metric or imperial there.

The key lives in ~/.config/panacea/settings.json, so it survives updates and is never shipped in the image. Without a key and a city the card stays empty by design.


Blockchain

Add the nixriot stanza inside /etc/nixriot/hosts/installed/local.nix, next to your username. The file holds both, and an update preserves it:

{
  nixriotUser = "riot";
  nixriot.hostName = "riot";
  nixriot = {
    crypto.monero = true;
    crypto.bitcoin = true;
  };
}

Monero GUI and Bitcoin Core come from nixpkgs. GlyphRiot, a seed-phrase glyph tool for self-custody, is installed by default, built from source and pinned to a commit. WireGuard is configured with nixriot.wireguard.enable = true; in the same stanza. Wallet files and keys, seed phrases included, are yours to create and back up; the flake never ships them.


VPN

Mullvad VPN is installed and enabled by default: the daemon starts at boot and the desktop app is in the app launcher. The mullvad command line works too:

sudo mullvad account login
sudo mullvad relay set location us nyc
sudo mullvad connect
mullvad status

mullvad account login opens a prompt; paste the 16-digit account number there. It is not accepted as a command-line argument.

The pill's VPN panel is a status readout: it reports whether a tunnel is up (it detects Mullvad's wg0-mullvad interface), and the header chip shows the exit city when connected. Clicking the chip opens the selected client; connect and pick a server there. The power button on the island's VPN page also connects and disconnects a chosen client or profile.

For a WireGuard config (the OpenRiot workflow), set nixriot.wireguard.enable = true; in /etc/nixriot/hosts/installed/local.nix and put your config in /etc/wireguard/wg0.conf. The Panacea VPN panel detects wg0 and reports the tunnel state.


Browser and moving from OpenRiot

The default browser is Firefox, which is also OpenRiot's. Nothing about your browsing setup has to change.

Moving from OpenRiot:

  • Bookmarks: in Firefox, Ctrl+Shift+O, then Import and Backup, Export Bookmarks to JSON. On the new machine, import the same file.
  • Passwords: in Firefox, about:logins, then the menu at the top right, Export Logins. Import it the same way on the new machine. Delete the export file afterwards; it is plain text.
  • Default browser: NixRiot sets Firefox for http, https, and text/html in home/xdg.nix. To change it, edit xdg.mimeApps.defaultApplications there.

Brave, Chromium, and other browsers are not installed by default.


Games

Off by default. To install the curated set, add nixriot.games = true; to the nixriot stanza in /etc/nixriot/hosts/installed/local.nix. It pulls supertux, openttd, cataclysm-dda, endless-sky, angband, and brogue-ce. It is deliberately a small subset of OpenRiot's list; several OpenRiot games are no longer in nixpkgs.


Updating

/etc/nixriot is a copy of the project, and /etc/nixriot/hosts/installed/local.nix is yours. An update replaces the project and keeps the machine files (local.nix, hardware-configuration.nix and features.nix, the Installs state).

From the pill: Settings → Maintenance → Update. On the command line:

sudo nixriot-update apply

That clones the project from GitHub, replaces /etc/nixriot with it, and applies the update live. The desktop reloads in place, so new configuration lands without a reboot and without closing what you have open. A new kernel or initrd loads on the next normal reboot. A timer runs nixriot-update check every four hours; when it finds a newer version, the pill shows an Update button beside the VPN indicator. The System page shows the same state, with a Check button that asks GitHub directly.

Display, input and keybinding changes made in Settings survive the update, and the release notes are written to /var/lib/nixriot/release-notes.txt; the what's new window shows them once per version.

The Update button in the pill, next to the VPN indicator

The Update page in Settings, with the update ready to install

The Update page in Settings, while the update downloads

The what's new window after the update

Before switching, the updater copies the current tree to /var/lib/nixriot/previous and builds the new one with nixos-rebuild build. If local.nix is missing its user or the build fails, it restores the previous tree and stops. The previous generation stays in the boot menu, so sudo nixos-rebuild switch --rollback is always available.

Releases are signed, and the updater installs only a tag whose signature checks out against allowed_signers in the tree it is running. A failed check copies nothing, so the machine keeps the generation it has. Upgrading from an older release needs no special step: the updater that runs is the one already on the machine, and the key arrives with the tree that brings signing. NIXRIOT_VERIFY=0 skips the check, for putting unreleased work on a machine:

sudo env NIXRIOT_VERIFY=0 nixriot-update apply

Upgrading from 1.9 or older: the updater in those releases could not find nixos-rebuild and left /etc/nixriot unreadable. Run this once, which also installs the fixed updater:

sudo env PATH=/run/current-system/sw/bin:$PATH nixriot-update apply

If a generation freezes or will not boot, pick the previous generation in the boot menu, then build a known-good tree without activating it:

rm -rf /tmp/NixRiot
git clone https://github.com/CyphrRiot/NixRiot /tmp/NixRiot
cp /etc/nixriot/hosts/installed/local.nix /etc/nixriot/hosts/installed/hardware-configuration.nix /tmp/NixRiot/hosts/installed/
sudo nixos-rebuild boot --flake /tmp/NixRiot#installed

Reboot into the newest entry.

To rebuild without fetching anything, run the same rebuild alias:

rebuild

Backup and restore

Settings → Maintenance → Backup & Restore mirrors your home folder onto a mounted drive, verifies the mirror, and can put it back. The drive is picked from the mounted removable ones; Automatic uses /run/media/<user>/Backup, and picking a drive stores its path as backupDrive in ~/.config/panacea/settings.json.

The page shows Total size (what the mirror holds), Free space, Last backup, and Last transfer, the bytes copied by the last run. Mount and Unmount sit beside the drive picker.

The Backup and restore page, with the drive mounted and encrypted

Back up now copies with rsync -aH --delete, so the drive is a mirror of $HOME and files deleted here are deleted there too. When it finishes it compares the two trees with a dry-run rsync and reports any difference instead of claiming success. Verify runs that comparison alone. Restore always shows what would change first, then copies back into $HOME without --delete, so restoring never deletes anything you have locally.

The same script is available in a terminal:

~/.config/panacea/scripts/backup.sh status
~/.config/panacea/scripts/backup.sh backup
~/.config/panacea/scripts/backup.sh verify
~/.config/panacea/scripts/backup.sh restore

The drive must be encrypted, checked through lsblk, so a plain stick cannot be mistaken for the backup. Besides the mirror, the drive gets a system/ directory holding /etc/nixriot, nixos-version, lsblk -f, blkid, efibootmgr -v and /etc/fstab, which is what a rebuild needs to come back.

To restore a machine: install NixRiot from the ISO, copy system/nixriot over /etc/nixriot, run rebuild, then restore your home folder.

nix flake update there moves the packages forward, but it only edits the copy: the next nixriot-update apply replaces the whole tree, flake.lock included, so the change is discarded.

Package versions come from the flake's nixpkgs input, not from /etc/nixriot. To move them for everyone, run nix flake update nixpkgs in a clone of this repository, commit the new flake.lock, and release; installed machines pick it up with the next update, run from Settings → Maintenance → Update or with sudo nixriot-update apply.

Never install or upgrade system packages with nix profile or nix-env. They land outside the flake, survive updates unpredictably, and cannot be reproduced.

Panacea's own updater is replaced by an adapter that drives nixriot-update; the upstream one rewrote the config tree and would fight the flake.


Personal image

Settings → Maintenance → Personal Image builds an installer ISO from this machine's tree, so a fresh install already has your setup. It carries the username and hostname from hosts/installed/local.nix, the Installs selection from features.nix (Claude, LibreOffice, the games collection and any package you added by name), and your Panacea settings from ~/.config/panacea/settings.json.

API keys are removed from the copy before the build: aiKey, weatherKey, vpnPreferredClient and updNotifiedVer. Hardware, passwords, SSH keys, the vault and application data are not carried. The hardware-configuration.nix inside the image is replaced when the installer runs nixos-generate-config.

The Personal Image page in Settings, building an image

The image lands in ~/Downloads as NixRiot-<hostname>-<date>.iso, with a .sha256 beside it. Building needs about 8 GB free in /nix, 3 GB where the file is saved, and network access for anything this machine does not already have cached; expect 20 to 60 minutes. The result is unsigned and is not the official release.

Booting it asks only for the target disk, the LUKS passphrase and the user password: the baked username and hostname are reused. Set NIXRIOT_USER or NIXRIOT_HOSTNAME at the installer to override them, and use NIXRIOT_DISK, NIXRIOT_PASSPHRASE and NIXRIOT_PASSWORD for an unattended install as usual.

The same build from a terminal:

~/.config/panacea/scripts/personaliso.sh start

Advanced: build your own image

To build the image yourself, on any machine running Nix with flakes enabled:

git clone git@github.com:CyphrRiot/NixRiot.git
cd NixRiot
nix build .#iso

The image lands at result/iso/NixRiot.iso. It is a hybrid image, so dd it to a USB stick as in Download. Building needs about 40 GB of free space and network access for the first nix flake lock.

The live image is not built from the desktop's kernel pin: an installer meets unknown hardware, so it runs the newest kernel in the flake while installed systems keep the pinned one.

make release and make bump need the dev shell: run nix develop first, then make release.

Publishing keeps the current release and the newest existing one, and deletes the older releases (their tags stay). The list is printed before the confirmation prompt, and make publish prunes the same way.


Troubleshooting

Anything not covered here belongs in a GitHub issue. If it came from an install, attach the log.

  • The install failed partway. Re-run sudo nixriot-install; it wipes and starts over.

  • No network during install. The installer refuses to touch a disk until cache.nixos.org answers. Press w at the prompt to run nmtui.

  • The install failed and you want to report it. The entire run is in /tmp/nixriot-install.log inside the live system. Send it with:

    curl --data-binary @/tmp/nixriot-install.log https://paste.rs

    That prints a URL on stdout; put it in the issue.

  • The time zone cannot be changed from Panacea. The pill runs timedatectl set-timezone directly. On a generation that still manages /etc/localtime, that path points into the read-only Nix store and timedatectl fails with Read-only file system. NixRiot sets time.timeZone = null so timedatectl owns the file, and a polkit rule allows wheel to run timedatectl. On an older generation, set it by hand: sudo ln -sfn /etc/zoneinfo/Region/City /etc/localtime. A rebuild from a tree that still sets time.timeZone = "UTC" will undo the change.

  • The passphrase prompt did not appear until a key was pressed. Fixed: the boot log used to bury the prompt under kernel messages. On 1.44 or newer it appears on its own. If it does not, report the laptop model.

  • The installer stops after LoaderDevicePartUUID or New USB device strings. The LoaderDevicePartUUID lines are harmless noise from the GPT generator, which GRUB does not set; the stall itself is usually a bad USB write. Rewrite the whole device, not a partition:

    sudo dd if=NixRiot.iso of=/dev/sdX bs=4M status=progress conv=fsync
    sync

    Verify the ISO signature with ssh-keygen -Y verify as in Download, and the checksum with sha256sum -c SHA256SUMS, then boot UEFI with Secure Boot off, and try a second stick before blaming the machine.


Donations

NixRiot was built by one person. If it saved you time, consider donating (in Bitcoin):

bc1q77vh5x2ujgzjesc8s877hsvuzgx8z8m20flww8


Licence and credits

NixRiot's own code is MIT. Panacea is MIT. OpenRiot is MIT. Wallpapers, fonts, and bundled assets keep their original authors' terms.

About

A Sovereign Linux Riot Desktop

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages