Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Justfile Commands

Each repository carries its own justfile. This one covers library development, while a consuming fleet’s covers host management. Run just in either repo to see available commands.

othrys.nix (this repository)

CommandDescription
just checknix flake check, which runs every check, the VM tests included
just check-one NAMEOne named check, under one job and a memory cap
just fmtFormat the repo (treefmt)
just lintFormat check + statix + deadnix
just cilint + flake check
just update [input]Update flake inputs
just docs [build|serve|clean]MdBook documentation
just dev [shell]Enter dev shell
just replOpen Nix REPL
just cleanRemove build artifacts
just yubikey-onboard [args]Onboard/rotate YubiKey(s) (options)
just release [bump]Run just ci, then bump the version with commitizen, write CHANGELOG.md and tag the release
CommandDescription
just build [host]Build a host (defaults to current hostname)
just test [host]Test configuration (reverts on reboot)
just switch [host]Apply configuration permanently
just boot [host]Set configuration for next boot
just diff [host]Show diff between current and new configuration
just update [input]Update flake inputs (incl. secrets, othrys)
just checkValidate flake (hosts must evaluate)
just fmtFormat (treefmt, re-exported from othrys.nix)
just gc [age] / just maintain [age]Garbage collect / GC + optimize
just disk <host> / just install <host>Fresh-install workflow
just luks-enrollEnroll a YubiKey into the LUKS keyslot
just cilint + check + build every host

Upgrade Pattern

The test, switch, and boot commands accept an upgrade argument to update inputs first:

just switch <hostname> upgrade