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

Stability & Releases

othrys.nix is consumed as a flake input by fleet repositories, so option surfaces are contracts. This page defines what consumers can rely on and how change is signaled.

The consumer contract

Four properties hold across every module, and changing any of them is a breaking change. flake/checks/ encodes all four, so a violation fails evaluation rather than reaching a consumer.

  1. No username module argument. Read the primary user from config.othrys.system.user.name. The option has no default.
  2. Guard every per-user write. Account writes behind othrys.system.users.enable, at the attrset level, never on a leaf. Home Manager configuration goes to othrys.internal.homeConfig and persistent paths go to othrys.internal.persist, never to home-manager.users or environment.persistence. One export applies each registry and its guard, nixosModules.home for the first, or darwinModules.home on nix-darwin, and nixosModules.impermanence for the second.
  3. nixosModules.default writes into no upstream namespace. A host built from it alone imports no other module. Five exports are optional, and a host imports each together with the upstream module it configures. nixosModules.home goes with Home Manager, nixosModules.stylix with Stylix, nixosModules.disko with disko, nixosModules.secrets with sops-nix and nixosModules.impermanence with impermanence. nixosModules.full is default with all five and the five upstream modules, taken from this flake’s own lock. darwinModules.default holds to the same rule on nix-darwin. Its optional exports are home with Home Manager, stylix with Stylix and secrets with sops-nix, and darwinModules.full is default with the three and their upstream darwin modules.
  4. specialArgs carry inputs or nothing. Modules read two names from it, nixpkgs for the registry pin and the optional secrets. Not username, not hostname. The same holds for a host built with darwinSystem.

Alongside those, the othrys.* option namespaces themselves and the declared input names that consuming flakes follows-pin are load-bearing. See Host Configuration for what a consumer writes, and CONTRIBUTING.md for the reasoning behind each rule.

Option deprecation

Renamed or relocated options keep working through lib.mkRenamedOptionModule aliases (for example, the former othrys.apps.lsp.* names alias to othrys.apps.languages.*). Aliases:

  • warn on use, pointing at the new name,
  • are kept for at least two tagged releases after the rename lands,
  • are removed in a release whose notes call the removal out.

Removals without a rename (a module or option deleted outright) are breaking changes and follow the commit/release signaling below.

Change signaling

Commit messages follow Conventional Commits (enforced by commitizen in pre-commit):

  • feat!: or a BREAKING CHANGE: footer marks anything a consumer must react to, so option removals, changed defaults with behavioral impact (e.g. the fail2ban ignoreIP default), new required options, input renames.
  • feat:/fix:/refactor: without ! are safe to pull blindly.

Releases

Tags are vMAJOR.MINOR.PATCH (semver-ish; pre-1.0 minor bumps may carry breaking changes, always marked as above). Cut with:

just release          # runs the full check suite, then bumps, writes CHANGELOG.md and tags
just release minor    # the same, forcing the increment (major, minor or patch)
git push origin main v0.4.0

Without an argument commitizen derives the increment from the commits since the last tag. The bump commit lands on main, so main is pushed together with the tag.

Consumers choose their risk level:

  • Pin a tag (othrys.url = "github:<owner>/othrys.nix/v0.4.0") for hosts that must not drift. Upgrade deliberately by bumping the tag.
  • Track main for hosts on the weekly auto-update cadence. The next section states what has run against a commit by the time it is there.

What the merge gate enforces

The Build workflow runs the CORE and EXTENDED check tiers on every pull request and again on every push to main. It reports three statuses for branch protection to require, Core checks, Core checks (darwin) and Extended verdict. The verdict passes only when every extended check succeeded, so a failed, cancelled or skipped check fails it. A newer push to a pull request cancels the run before it, while a run on main is never cancelled.

Requiring the three statuses is a repository setting, and the workflow reports them without enforcing anything itself. With the setting in place, a commit that reaches main through a pull request has passed both tiers as the head of that pull request. The ARM evaluation job runs on the same events and is not one of the required statuses.

The release commit is the exception. just release runs every check locally before it writes the commit, and the commit is pushed to main without a pull request. The workflow runs both tiers on it after the push, so a consumer tracking main can receive it before that run has finished.

What the checks guarantee

The two tiers between them evaluate the three server-contract host shapes (named/anonymous/account-without-home-manager), both desktop stacks, every othrys.*.enable flipped on with defaults (the enable matrix), the impermanence wipe-script behavior against real btrfs, and a reboot of a VM with an empty root that compares the machine-id, the SSH host key and the journal directory before and after, and then makes the first live switch of a host that predates the persisted machine-id. The router stack also runs in a VM, where two LAN clients take Kea leases, resolve a local name through Unbound and reach a WAN host through the masquerade, while the default-drop input and forward chains are probed from the WAN and from the other LAN. A second VM puts Suricata inline on the router’s NFQUEUE hook and shows a local rule dropping a request, then stops Suricata and shows forwarded traffic still passing, which is the fail-open behavior the router documents. It then plants a rule that cannot load and shows the unit ending in failed, the failure hook firing, and the recovery unit bringing the engine back. A third VM serves a git repository to the auto-upgrade signature gate, which refuses unsigned refs, refs signed by an unlisted key, and a rollback.

What the checks do not cover

  • Graphical sessions. No check starts a compositor, so treat the first boot of a new desktop surface as a smoke test.
  • Secure Boot. eval-bootloader evaluates every bootloader with secureBoot on and off, with and without lanzaboote imported. No check boots a VM under firmware Secure Boot.
  • Auto-upgrade. The signature gate runs in a VM. The rebuild that follows it is never run, since the test VM has no network.
  • aarch64-linux beyond evaluation. CI evaluates the server, headless and default host fixtures on an ARM runner. No VM test runs there, no desktop fixture is evaluated, and no ARM host has been booted.
  • aarch64-darwin. CI builds the commit hooks, the scans, the dev shells, the formatter and two hosts from darwinModules.default on a macOS runner, and evaluates the same hosts from Linux. No darwin host has been activated. No other platform is evaluated at all.

The Security Model lists the design limits, as opposed to the testing limits here.