No description
  • Nix 51.1%
  • Python 28.9%
  • Shell 10.5%
  • Just 9.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-12 07:59:10 +00:00
.agents/skills/update-wiki docs: align source entry points with rebuilt wiki 2026-09-14 07:32:41 +01:00
.engram Replace Graphiti with Engram autosync 2026-07-03 06:16:56 +01:00
.forgejo ci: update Strata model selector to coder-iq1_m 2026-11-12 07:59:10 +00:00
.github fix(ci): register Vega label and expose NixOS review tools 2026-10-07 22:08:07 +01:00
.gitlab ci(gitlab): configure OpenCode 2 AI merge request reviews 2026-10-22 22:30:38 +01:00
docs ci: reduce build slots before OOM compiler threads 2026-10-21 12:01:25 +01:00
home Chore: Updating wallpaper 2026-10-22 21:43:58 +01:00
hosts media: share pyopenjtalk test compatibility with Vega 2026-10-21 16:30:39 +01:00
justfiles Add opt-in hybrid build mode for test and deploy 2026-10-17 08:00:16 +01:00
keys fix(hermes): use the public GitLab SSH endpoint 2026-10-18 08:09:03 +01:00
lib fix(hermes): address review feedback on auto-update policy and dashboard options 2026-10-19 12:24:43 +01:00
modules fix(paseo): run postinstall patches in desktop preBuild to fix React #130 crash 2026-10-22 21:39:51 +01:00
nebula fix(nebula): distinguish Matrix identity from Pangolin lighthouse 2026-10-17 20:37:57 +01:00
packages fix(auto-update): remove recovered dfhack pin and support reversed file creations 2026-10-17 16:45:39 +01:00
potential Restrict Lyra administrative services to local and mesh access 2026-10-12 14:36:56 +01:00
remediation media: share pyopenjtalk test compatibility with Vega 2026-10-21 16:30:39 +01:00
scripts ci: reduce build slots before OOM compiler threads 2026-10-21 12:01:25 +01:00
secrets Refresh encrypted backup after GitLab armor repair 2026-10-22 10:43:13 +01:00
tests ci: reduce build slots before OOM compiler threads 2026-10-21 12:01:25 +01:00
users feat(hermes): add dedicated fleet SSH identity and configuration 2026-10-13 10:58:14 +01:00
.gitignore chore: ignore generated Cloudflare workspace cache 2026-10-12 00:06:53 +01:00
.gitlab-ci.yml ci(gitlab): configure OpenCode 2 AI merge request reviews 2026-10-22 22:30:38 +01:00
.sops.yaml Back up Nebula Commander release signing keys with SOPS 2026-10-22 10:37:07 +01:00
AGENTS.md docs: clarify Pangolin naming and review publication scope 2026-10-15 13:53:42 +01:00
flake.lock flake: switch kiwifs, beszel-mcp, and karakeep-mcp inputs to GitLab HTTPS 2026-10-22 22:19:01 +01:00
flake.nix flake: switch kiwifs, beszel-mcp, and karakeep-mcp inputs to GitLab HTTPS 2026-10-22 22:19:01 +01:00
Justfile Harden and tune opencode config for Paseo-only use 2026-08-05 09:21:27 +01:00
LICENSE chore: adopt EUPL and retire Nova benchmark 2026-09-06 15:58:58 +01:00
paseo.json remove engram cloud service and client integration 2026-09-19 21:01:14 +01:00
README.md Back up Nebula Commander release signing keys with SOPS 2026-10-22 10:37:07 +01:00
treefmt.nix feat: adopt treefmt formatting and checks 2026-07-28 08:59:11 +01:00

NixOS Configuration

Multi-host NixOS flake for Electra, Lena, Vega, and Lyra. flake.nix and the imported modules are the executable source of truth. The repository wiki is the curated reference, operating manual, engineering handbook, ADR register, and small NixOS learning path. Active plans and acceptance evidence belong in Forgejo issues.

The standalone updater package and module come from nixos-auto-update on GitLab over public HTTPS. flake.lock pins its exact source revision.

Licence

Copyright © 2026 Nimmo. Original material in this repository is licensed under the European Union Public Licence v. 1.2. Referenced, fetched, and built third-party software retains its own licences.

Quick start

Run just or just --list for the current recipe names and parameters. The most common commands are:

Task Command
Validate Nix configuration and flake checks just check
Build and compare the current host without activation just build-diff
Test the current host without adding a boot generation just test
Deploy the reviewed configuration on the current host just deploy
Inspect evaluated host metadata just fleet-status
Inspect recent system generations just generations
Inspect the latest automatic update just auto-update-last-run
Check backup service state and recent snapshots just backup-status, just backup-snapshots

Stage new .nix and encrypted secret files before flake evaluation: a Git-backed flake does not see untracked files. Review every diagnostic warning. For configuration changes, read AGENTS.md and the wiki's Testing and CI Contracts.

Electra has one flake target with battery base, igpu, and dgpu boot variants. The latter two describe physical NVIDIA expansion-bay presence, not a workload preference. just test and just deploy preserve the current specialisation unless a deliberate mode change is requested. Use the wiki's Safe Testing and Deployment procedure, including an auto-update hold before remote testing.

Both commands use the host's declared build policy by default. Append local, remote, or hybrid to override build placement for one operation; the mode follows an optional Electra specialisation, such as just test dgpu remote or just deploy hybrid.

For an explicitly selected remote target without giving that target the source tree, use just test-remote vega. It captures the controller's working tree, including untracked files. Add test, boot, or switch as a second argument to choose the activation action; test is the default.

just backup-restore is intended for disaster recovery on a freshly deployed machine and strictly requires root privileges (sudo just backup-restore). Both the Backrest daemon and CLI recipes share the evaluated mesh endpoint (mass-storage.mesh:8008). For file or service inspection and partial recovery, use just backup-restore-path to safely stage data into /tmp. Follow Full-Host Recovery or Backup Verification and Partial Restore for runbooks. Disko/provisioning, boot-trust recovery, and secret rotation also have dedicated safety-gated runbooks; do not infer their commands from old Git history.

Repository entry points

Path Role
flake.nix, flake.lock Pinned inputs, shared makeNixosSystem builder, registered hosts, checks, and packages
hosts/<host>/ Selected host composition, hardware, storage layout, and local policy
modules/common/, modules/server/, modules/desktop/ Shared baseline and class-specific foundations
modules/profiles/, modules/services/, modules/containers/, modules/databases/, modules/mcp/ Opt-in capabilities, workload integration, and shared MCP servers
users/ System account declarations
home/users/nimmo/, home/common/ Primary-user Home Manager entry point and shared user modules
potential/ Unregistered host drafts and legacy reference, excluded from normal host builds
justfiles/, scripts/, tests/, .forgejo/workflows/ Operator commands, implementation helpers, regressions, and Forgejo CI
secrets/, .sops.yaml Encrypted scoped secret files and age recipient policy; never plaintext values
nebula/ Public CA and host certificates; certificate provisioning uses just nebula-add-host
.agents/skills/update-wiki/ Agent checklist for per-page source verification and independent wiki publication

Attic supports optional host-owned IPv6 HTTPS through nixosConfig.attic.publicHttps.enable, with its virtual host in modules/services/attic-https.nix. Only Vega imports and enables this module; the backend remains on loopback and the existing Newt route remains available. NixOS ACME obtains and renews the certificate using Cloudflare DNS validation and a SOPS-encrypted, zone-scoped token delivered through systemd credentials. Certificate activation does not itself change public DNS. Direct ingress requires the host interface firewall and the separately maintained router configuration.

The shared host baseline explicitly prefers usable native IPv6 through NixOS's networking.getaddrinfo.precedence policy, retaining IPv4 fallback for networks without working IPv6. This applies to applications using glibc address selection; applications with their own connection logic may choose differently. It does not change DNS records or disable IPv4.

Nebula bundles use an IPv6-capable underlay listener ([::]); Linux dual-stack sockets also accept IPv4. The dual-stack overlay address plan keeps 10.10.0.0/16 and adds private IPv6 subnet fd56:f458:569c::/64. nebula/router.json owns the router overlay addresses and phone exit routes used by the NixOS module and bundle recipe. The router is allocated 10.10.0.10 and fd56:f458:569c::10; IPv6 overlay addresses must be included in its version 2 certificate. Existing nodes keep their addresses until their certificates and configuration are migrated. just nebula-add-host accepts a single bare IPv4 address (adds /16) or IPv6 address (adds /64). For a comma-separated list, supply an explicit prefix on every address, for example 10.10.0.30/16,fd56:f458:569c::30/64. Bundles accept IPv6-only certificates; lighthouse DNS binds to the certificate's IPv4 address when present, otherwise its first IPv6 address. IPv6-only bootstrap additionally requires a reachable IPv6 lighthouse endpoint in static_host_map; the current bundle bootstrap points to the IPv4 VPS.

For the Android phone's dual-stack router exit, use just nebula-bundle phone mobile-router-full-tunnel '<router host:port endpoints>' with comma-separated IPv4/IPv6 endpoints (bracket IPv6 literals). This profile uses router DNS at 10.10.0.10 and split default routes for both families. The phone needs a v2 certificate containing fd56:f458:569c::30/64; the router certificate must authorize 0.0.0.0/1,128.0.0.0/1,::/1,8000::/1 as unsafe networks. Router setup is maintained separately in the local ~/Projects/router-nebula project, including the OpenWrt service, phone-only WAN forwarding and DNS, targeted IPv6 masquerading, and regression tests. mobile-import.yml embeds the credentials and router DNS for Mobile Nebula's file import; handle it as a private key. Vega's internet exit role is disabled in source, and the old Vega full-tunnel bundle mode is no longer supported. When reissuing a retired exit node's certificate, pass none as the unsafe networks argument to remove its route authority; leaving that argument empty preserves the existing certificate routes. Reissue does not revoke the replaced certificate: its old signed permissions remain valid until expiry or explicit fingerprint blocklisting. Routine, uncompromised reissues and naming corrections do not require fleet-wide blocklisting. Compromised credentials and explicitly retired hosts require targeted revocation. Blocklisting a replaced exit certificate is optional hardening; keep that fingerprint separate from retired host names so the active node remains provisionable. GL.iNet also manages port forwards through its separate port_forward kernel service. Router setup disables the former WAN UDP 4242 mapping to Vega and clears only its DNAT flows; an ordinary fw3 allow rule alone cannot override it.

NixOS mesh nodes use dual-stack underlay sockets and retain VPS discovery. Set nixosConfig.nebula.routerBootstrapAddresses to reachable router host:port endpoints to opt a host into router discovery and relaying. Vega is an ordinary mesh node. nixosConfig.nebula.ipv6HostMap supplies hosts-file and DNS AAAA records for confirmed certificate addresses across the fleet: the VPS, router, phone, Vega, Lyra, Lena, Electra, Nova, mass-storage, Media1, Nimmog-de and the Matrix client. The public router bootstrap name router-underlay is maintained through nixosConfig.nebula.routerUnderlayAddresses in /etc/hosts, independently of router.mesh. Update its IPv4 address and delegated-prefix IPv6 address when the ISP changes them. All registered NixOS mesh hosts opt into this bootstrap; the VPS remains available as fallback. Standard bundles provide credentials and a VPS bootstrap configuration; they do not inherit NixOS host options or require router exit metadata. Only the full-tunnel bundle mode reads nebula/router.json for exit settings. Native host deployment configurations in ~/Projects/router-nebula supply their router endpoints separately. The Matrix client (formerly ES2) uses the mesh name matrix. The names pangolin and pangolin-vps both identify the existing external lighthouse; its certificate identity remains pangolin-vps. Multiple names sharing an overlay address retain all bare and .mesh aliases in fleet discovery. The Pangolin service remains available through https://pangolin.nimmog.uk; mesh aliases identify its host without changing that HTTPS endpoint. Compatibility aliases are provided by static hosts/CoreDNS records and the router's dedicated mesh DNS records; Nebula's dynamic lighthouse DNS advertises the signed certificate identity. Totalgeek is separately managed and is not a mesh member.

The complete import chain and ownership rules are in the wiki's Engineering Handbook. modules/common/default-config.nix defines portable nixosConfig defaults for the primary user, email, repository path, and SSH key path. Host entries override them only when the host actually differs. New root flake inputs must also be classified by real consumers in lib/auto-update-policy.nix.

The shared AI client profile installs Google Antigravity CLI (agy) from llm-agents, alongside Codex on Electra, Lena, Vega, and Lyra. Pi also uses llm-agents, as does OpenCode 2 (opencode2 package, exposed as opencode for the CLI and desktop launcher). These clients follow the shared llm-agents lock entry rather than separate package pins. Shared MCP servers (NixOS, Beszel, Forgejo, Trilium, Pangolin, BookStack, Karakeep, SynthSeek, Navidrome, KiwiFS, Redview, Cloudflare, GitLab, Home Assistant) use the central registry. Cloudflare and GitLab are configured for Codex, OpenCode and Pi; other shared servers also support Antigravity CLI.

OpenCode enables its built-in opencode provider for free models without registration, alongside the authenticated OpenCode Go and OpenRouter providers and the configured Ollama endpoints.

Cloudflare uses https://mcp.cloudflare.com/mcp with per-user OAuth; no shared SOPS token is needed. After activation, authenticate on each client/host with codex mcp login cloudflare, opencode mcp auth cloudflare, or /mcp-auth cloudflare inside an interactive Pi session. Cloudflare entries are omitted from Antigravity CLI and Hermes until their OAuth login support is confirmed. Activation writes Codex HTTP MCP configuration without discovery or login, so unattended updates on headless Vega and Lyra never wait for a browser. Generic entries whose URL and bearer environment variable already match are left untouched, including user-added HTTP headers. Transport changes repair stale authentication fields; Redview's explicitly managed headers are reconciled on each activation. For manual Codex OAuth on a headless host, use codex -c mcp_oauth_callback_port=4321 mcp login cloudflare through ssh -L 4321:127.0.0.1:4321 <host>, then open the printed authorization URL in your local browser. OAuth remains separate from deployment. Override nixosConfig.mcp.cloudflare.enable to disable the entry. Restart the agent after adding the server. Cloudflare's vendor skills are installed separately in user-owned skill directories, following the official setup instructions: npx -y skills add cloudflare/skills --skill '*' --yes --global. The profile also installs the official beta cf CLI, with Node.js provided by Nix. A single cloudflare-cli input consumes the standalone package flake at forge.nimmog.uk/nimmo/cloudflare-cli.nix. That repository owns release metadata, scheduled GitLab CI upstream updates and native Worker/image smoke checks. Scheduled fleet updates validate its locked package revision; there is no npm-specific update adapter in the fleet repository. Authenticate separately with cf auth login, then check cf auth whoami. Codex's user instructions prefer cf unless the project has a Wrangler configuration.

The shared AI profile installs glab alongside tea for GitLab terminal workflows. For SOPS-backed CLI authentication, create a personal access token on forge.nimmog.uk with api and write_repository scopes, following GitLab's authentication guide. Use just edit-secrets gitlab to store it encrypted in secrets/gitlab.yaml under gitlab/glab/token. On activation, sops-nix renders the primary user's ~/.config/glab-cli/config.yml with mode 0600 inside a mode 0700 directory. The configuration defaults to forge.nimmog.uk, HTTPS API access and SSH Git operations, with the token scoped to that host. No glab auth login or shell token export is needed. Check access with glab api user --jq .username. SOPS owns this configuration; activation replaces manual edits. A supplied GITLAB_TOKEN environment variable overrides the configured token. CLI token authentication is separate from the MCP OAuth login below.

Nebula Commander release signing keys are backed up separately in secrets/gitlab-release-signing.yaml, under gitlab/release_signing. This is an encrypted backup of PACKAGE_SIGNING_KEY and UPDATE_SIGNING_KEY, using the same SOPS recipients as secrets/gitlab.yaml; it is not deployed to hosts. Keep the package-signing passphrase in an encrypted password manager as well: GitLab hidden variables cannot be exported back through its API.

GitLab uses its built-in Free-tier MCP server at https://forge.nimmog.uk/api/v4/mcp; no Duo subscription or additional container is required. The shared AI profile registers it on Electra, Lena, Vega and Lyra, alongside Forgejo. After activation, restart the client and authorize it with codex mcp login gitlab, opencode mcp auth gitlab, or /mcp-auth gitlab inside an interactive Pi session (the first two commands run in the shell). Sign in through Pocket-ID and approve GitLab's OAuth consent screen. Each client/host keeps its own OAuth credentials outside Nix; this does not use the Pocket-ID application secret or a shared administrator token. Tool access follows the signed-in GitLab user's permissions.

For headless Codex, forward the callback with ssh -L 4321:127.0.0.1:4321 <host> and run codex -c mcp_oauth_callback_port=4321 mcp login gitlab in that SSH session, opening the printed authorization URL locally. Activation only writes the configuration and never starts OAuth. As with Cloudflare, Antigravity CLI and Hermes are excluded until their OAuth login support is confirmed. Override nixosConfig.mcp.gitlab.enable or .url as needed. Hosts outside this flake require equivalent client configuration separately.

Pi uses pi-mcp-adapter, not a pi mcp login shell subcommand. For headless Pi, run /mcp-auth gitlab, open the authorization link on your workstation, approve access, then select Yes in Pi to paste the full callback URL from the browser address bar. A localhost connection error in the workstation's browser is expected when no tunnel is active. Paste the callback only into the waiting Pi session. Persistent OAuth requires an available OS credential store; on headless Linux this usually means an unlocked Secret Service keyring. See the adapter's headless OAuth guide.

Home Assistant uses https://home.nimmog.uk/api/mcp. Its registry entry is enabled when secrets/home-assistant-mcp.yaml is present in the tracked flake source. Create a long-lived access token in Home Assistant's user profile under Security, then run just edit-secrets-provisioning home-assistant-mcp and save:

home-assistant:
  mcp:
    token: <your Home Assistant long-lived access token>

The SOPS rule covers Electra, Lena, Vega, Lyra and recovery identities. Stage the encrypted file before building; no plaintext token belongs in Git or the Nix store. The shared clients use bearer authentication through HOME_ASSISTANT_MCP_TOKEN or a private SOPS-rendered configuration. Override nixosConfig.mcp.homeAssistant.enable, .url, or .sopsFile as needed. After activation, restart the clients to load their token and discover tools. Home Assistant controls which APIs and entities are exposed through its MCP integration; this registry entry does not change those settings.

Redview 2.6.0 embeds its MCP server at https://redview.nimmog.uk/mcp, using the existing HTTPS ingress to Lyra's loopback API on port 3210. The shared registry enables it automatically when secrets/redview-mcp.yaml is present in the tracked flake source. Provision redview.mcp.api-key in that SOPS file with the direct API key from Redview Settings; .sops.yaml scopes it to Electra, Lena, Vega, Lyra and the recovery identities. Worker keys and browser cookies cannot authenticate MCP. All clients send X-Api-Key; Codex uses env_http_headers, OpenCode/Pi use an environment reference, and Antigravity receives a private SOPS-rendered configuration. The key never enters the Nix store. Override nixosConfig.mcp.redview.enable, .url, or .sopsFile when needed. After rotating the direct key in Settings, update the SOPS file, redeploy affected hosts and restart the harnesses to reload credentials.

Fleet deployment acceptance is tracked in issue #290.

Vega's Navidrome MCP service uses the pinned standalone package, fetched over public GitLab HTTPS. This repository owns the service credentials, networking and monitoring policy; upstream packaging and update CI live in that project.

The AI runtime also installs token-tv from the pinned standalone package and service module. Application patches, assets and provider/clock tests live there; this repository keeps Vega-specific network, credential, backup and monitoring policy. Its clock display defaults to an LCARS-inspired face and supports Codex, Gemini via Antigravity's /usage, and OpenCode Go's usage endpoint. The clock shows at most three provider rows, prioritising Codex, Gemini, then OpenCode Go before Claude and Grok, and selecting one account per provider; additional providers and accounts remain available in the dashboard. Provider credentials remain in their existing CLI homes or the SOPS-backed OpenCode Go key; Token TV configuration contains account metadata only. From this repository, run nix run .#token-tv -- run --config ~/.config/token-tv/config.json --state-dir ~/.local/state/token-tv for the local dashboard, and set device_url to the clock's LAN address after its on-device Wi-Fi setup. For the SmallTV-Ultra stock firmware, also set device_api to "ultra" (the default is the original SD Pro API). The Ultra adapter uploads to the album and reselects the image after each update, preserving existing photos. It saves the original album settings; restore the former theme/image manually in the clock web UI because this firmware has no confirmed read API for that selection. The computer running Token TV must remain awake to refresh the clock; installing the package alone does not start a background service.

Vega enables the native token-tv.service, running as the primary user at http://10.10.0.2:8787 on Nebula only. It reuses Vega's own provider logins and stores runtime snapshots and clock restore information in /var/lib/token-tv, which is included in the existing service-data backup paths. The mutable configuration stays at ~/.config/token-tv/config.json, with LCARS selected; add device_url after the clock arrives, then restart the service. The daemon starts at boot independently of interactive logins once device_url is set. Service failures are monitored by default; set nixosConfig.tokenTv.monitorFailures = false to opt out. A missing config or clock address skips startup, so preparing the service before the clock arrives does not start polling or serving a dashboard. Unreadable, malformed, or non-object JSON configuration reports a startup failure to the journal and failure monitor rather than skipping silently. Repeated startup failures stop after three attempts within five minutes. After repairing the configuration, run sudo systemctl reset-failed token-tv and sudo systemctl restart token-tv on Vega.

Vega also hosts the native hermes-agent.service gateway and hermes-backend.service dashboard/backend, listening on Vega's Nebula mesh overlay IP (10.10.0.2:9119, TCP port 9119 allowed on nebula.mesh). The backend serves both the web dashboard and the WebSocket/PTY endpoints (/api/ws, /api/pty) used by the hermes-desktop client on Electra and Lena, with authentication enforced via the bundled Basic Auth provider (secrets/hermes-dashboard.yaml). The desktop client automatically authenticates via the SOPS-managed /run/secrets/hermes-dashboard-client-password without manual configuration. The gateway connects to Matrix (@hermes:nimmog.uk with E2EE disabled) and routes primary inference to https://ollama-nova.nimmog.uk/v1 (qwen3.6:35b-a3b-q8_0) via a dedicated Pangolin Virtual API key, with OpenCode Go (opencode-go, deepseek-v4.1-flash) as fallback. Go and Zen have separate model catalogs; use /zen/go/v1/models for the Go subscription. OpenCode Go serves claude-, minimax-, qwen and union-alpha model IDs over the Anthropic wire, which the NixOS-built Hermes venv cannot serve (no anthropic package); fallback models must come from other families. State and workspace live in /srv/services/hermes and are included in Vega's service-data backups. Hermes is wired to all configured fleet MCP servers and uses Vega's native SearXNG service (http://127.0.0.1:8888, opened only to the Nebula mesh and loopback) for web search. Local browser tools use Nix-packaged agent-browser and Chromium. A small browser discovery overlay selects that runtime ahead of Hermes PM's generic Linux download, which cannot launch on NixOS. A targeted Python import hook preserves the overlay when gateway startup reorders its module search path. Browser dependencies are provided by the Nix closure; a flake regression check exercises that gateway path with a cached PM browser present. The agent's persona (SOUL.md), model preferences, and custom skills are maintained in the dedicated GitLab nimmo/hermes repository, synchronized bidirectionally to /srv/services/hermes/profile through ssh://git@forge.nimmog.uk:2332/nimmo/hermes.git using the dedicated deploy key with write access, owned by the Hermes service account. This allows instant prompt iteration and enables the agent to author, commit, and push back its own skills and scheduled routines without NixOS rebuilds. Web access uses the existing Pangolin HTTPS route at forge.nimmog.uk; Git SSH uses the same hostname through Pangolin on port 2332. Profile Git verifies the endpoint against the root-owned /etc/hermes/git-known-hosts, managed by nixosConfig.hermes.gitKnownHostsFile. The GitLab container's SSH host key is separate from nimmog-de's host-login key on port 22. Startup reconciles an existing checkout's origin only after authenticated fetch (up to three attempts) and a compatible fast-forward check. Dirty profiles, divergent history and explicit push URLs stop the cutover for operator reconciliation; no reset or force push is performed. A rejected origin change fails preStart: the Hermes gateway does not start, and its service-failure monitor reports the failure. It deliberately does not continue running against the old origin. After a successful cutover, a failed ordinary pull retains the prior offline-start behavior. Before the first origin change, stop concurrent profile writers and take a private checkpoint of the complete checkout, including .git and any local work; a NixOS rollback alone does not restore mutable Git state. The migration checklist tracks deployment acceptance; detailed recovery instructions stay in private operator documentation.

Hermes fleet SSH uses a separate identity from secrets/hermes-fleet-ssh.yaml, delivered only to the hermes account on Vega. Its public key is authorized for the primary account on the configured NixOS hosts. Approved destinations, routes, accounts and operational guidance live in the nimmo/hermes profile repository (ssh/config and ssh/README.md), which the service-owned SSH configuration includes at runtime. Agent forwarding is disabled. Mass-storage keeps its existing DSM authentication setup, and the Windows Desktop has no SSH daemon. See the fleet SSH rollout and validation guide for remaining non-NixOS provisioning and authenticated checks.

Fleet at a glance

Lyra's native Tdarr UI/API and Ollama API use Nebula interface firewall rules; host-local clients remain supported. Tdarr additionally opens its server and web UI ports in the general firewall, so LAN clients can reach them directly; Ollama stays mesh-only. Immich binds to loopback, and Jellyfin's HTTP port has no general firewall opening: native Newt supplies their Pangolin routes. Wyoming speech ports retain direct LAN access for existing clients. Docker-published ports are owned by their Compose stacks and bypass the host input firewall; restricting them requires explicit Compose host bindings. The Nova NixOS draft defaults to loopback Ollama and no pre-opened administrative ports. It does not configure the running Fedora host. Deployment and the live Docker audit are tracked in issue #38.

Lyra and Vega carry a test-only compatibility patch for pyopenjtalk-plus 0.4.1-post9: its invalid-input regression accepts the Cython 3.2 error wording while keeping the exception and recovery assertions. A separate lifecycle record retests upstream and proposes removal when both hosts and flake checks pass (issue #386).

Host Form Main package set Role
electra Framework 16 laptop Unstable Mobile desktop, hardware-presence specialisations
lena Lenovo 2-in-1 laptop Unstable Mobile desktop
vega Physical Intel server Unstable Storage-backed services, cache, AI integrations
lyra Physical Intel/NVIDIA server Unstable GPU compute and media workloads

Nova's Attic CI builds allow two concurrent Nix derivations, each requesting up to 16 compiler threads, sharing a nominal 32-thread build budget. The builder guide describes these workflow overrides and the existing OOM backoff.

Lyra and Vega temporarily refresh HandBrake's private FFmpeg PGS subtitle patch for FFmpeg 8.1.3, preserving the upstream palette-safety fix. The tracked lifecycle record retests current nixpkgs without the workaround and proposes its removal after both hosts and flake checks pass (issue #381).

Electra temporarily overrides framework-laptop-kmod to use Kbuild's modules_install, generating the external-module certificates required by newer nixpkgs. This applies to the base and both GPU specialisations; remove the override once the upstream package supports that installation process (issue #378).

Nova has an unregistered draft under potential/nova/. Do not treat it as a NixOS flake target or assume NixOS commands work on that machine until installation is confirmed. Decommissioned reference configurations (media1, chaos) are preserved under potential/. The Host Inventory and Service Catalogue separate declared placement from dated deployment evidence and live health.

Where to go next

Implementation-adjacent details of the automatic-update remediation controller remain in docs/auto-update-remediation.md. The live source and tests override any prose description if they diverge.

Redview V2 production replacement on Lyra

The single redview input follows the root-layout V2 application's main branch without a fixed revision in its URL. flake.lock records the tested commit for reproducible deployment. Scheduled Forgejo input-update/cache automation refreshes that lock entry; Lyra's pull-only updater consumes the published configuration and rebuilds it. A manual immediate refresh uses nix flake update redview before validation and deployment. The lock tracks the published stable application; 2.4.0 adds trusted remote workers with server-local SQLite. Publish and validate that stable input before deploying the persistent remote-worker configuration. The retained 2.0.0 scheduling correction lets hash generation and candidate scans run beside rip/tag/purge, while folder scans, moves and deduplication that changes files remain exclusive. Media purged during hashing/comparison is skipped safely. Normal version updates never rerun the migration helper. Lyra's production configuration removes the V1 service and separate staging module, preserving the Unix media owner, NFS mount, SOPS OIDC/BDFR/VPN setup and existing port 3210. It runs four NVIDIA worker processes, each with one concurrent job slot, and enables scheduling. V2 uses /var/lib/redview-v2/production.db; the original V1 DB and disposable staging DB are preserved.

Backups include both state directories; failure monitoring includes the API and all four workers. Service namespaces protect the original V1 state, with writable media and BDFR configuration subdirectories. Production authentication's environment file is required.

Tagging uses Redview's automatic batch sizing based on free GPU memory after model load. Keep TAG_BATCH_SIZE unset so batches account for the encoder and other concurrent GPU jobs instead of reserving a fixed 32-image batch.

Lyra now declares the persistent Qwen encoder on loopback port 3212, using the validated local runtime/cache under /var/lib/redview-v2/encoder-runtime-rc3. The rc3 directory name identifies the retained runtime, not the application version. Its Python/Nix dependencies must remain GC-rooted; the library dependencies are retained by the system closure. API/workers wait for the expected encoder metadata before starting and load the dedicated worker key from /var/lib/redview-v2/remote-worker.env alongside the existing SOPS environment. Keep that file protected and available before activation; no key value enters Nix or Git.

The operator retired the RC3 /run/systemd/system overrides and trial encoder during the 2026-10-06 live cutover, retaining their unit definitions privately. That completed transition remains outside this permanent configuration; it must not be rerun as a routine update. The permanent encoder's readiness check lives in its service definition. Gracefully interrupted jobs may be paused and need explicit resume after health checks. Nova's permanent worker rollout remains separate.

The nixosConfig.redview.encoder.expectedIdentity option deliberately pins the validated model contract; it is independent of Redview's application version. Redview's scripts/encoder-server.py:model_metadata() computes SHA-256 over sorted JSON containing both model IDs/revisions, dimensions, prompt, preprocessing, dtype, attention, normalisation and protocol. A flake refresh does not approve a changed model automatically: a mismatch blocks API/worker startup instead of silently changing embeddings.

For a model/runtime update:

  1. Keep the host update hold. Build the proposed locked Redview package, then derive its metadata from that selected package, not an unrelated checkout. This read-only command uses only the standard Python library and performs no model inference:

    encoder_package=$(nix eval --raw .#nixosConfigurations.lyra.config.services.redview-v2.package.outPath)
    python3 -c 'import json, runpy, sys; print(json.dumps(runpy.run_path(sys.argv[1])["model_metadata"](), sort_keys=True))' "$encoder_package/share/redview-v2/scripts/encoder-server.py"
    
  2. Stage the matching pinned model cache and validated Python runtime separately. As the redview service user, verify real text/image inference, finite normalised vectors, dimensions and /metadata equality with the selected package. Compare against the existing deployment; dependency-only runtime updates need not change the model identity.

  3. If the model contract intentionally changes, set nixosConfig.redview.encoder.expectedIdentity to the validated identity in the host configuration together with the runtime/cache selection; the readiness script reads this setting. Any dimension change also requires matching application support and an updated dimension check. Record the metadata and inference evidence in cutover issue #268. Run nix flake check and the full Lyra build before review. These CI/build checks validate configuration; real inference remains operator acceptance. Redview rejects text search against an old model identity until its derived embedding index is rebuilt; plan that workload before cutover.

  4. Activate and verify readiness/API health while the hold remains in place. Resume interrupted jobs only after those checks; release the hold once the persistent deployment has been verified.

The one-off RC3 retirement is tracked in issue #268, including the private helper location, operator sequence and recovery steps. No transition helper or additional test script is shipped in this configuration repository.

The initial V1-to-V2 migration completed on 2026-10-02; its one-off preparation helper and rehearsal are retired from the current tree and preserved in Git history. Issue #257 records the migration evidence. On 2026-10-06 the operator completed the persistent Redview 2.4.0 encoder/worker cutover: running and persistent system profiles match, a follow-up build is unchanged, all six services are healthy, and the RC3 runtime overrides are retired. Issue #268 retains the cutover and recovery record. Subsequent updates use the normal deployment workflow; just test alone reverts on reboot. The user performs all sudo actions.

Non-NixOS native hosts and the NAS use the router's IPv4/IPv6 endpoint literals in Nebula configuration. Do not modify their operating-system /etc/hosts or add Docker extra_hosts entries for mesh bootstrap. Mesh DNS records remain owned by the router's dedicated DNS hosts file and the VPS CoreDNS service.

Nebula host retirement is recorded in nebula/revoked.json using certificate fingerprints. Chaos and Cosmos are retired; provisioning recipes refuse those identities. All peers must load the blocklist to revoke their network access; lighthouses do not distribute it. Their public certificates remain for audit, while retired encrypted node keys are removed. Routine identity replacements on active hosts follow the reissue policy above; superseded public certificates remain auditable in Git history and recovery tags, while current certificate files describe the active identities. Apply the retirement list to native and mobile clients as well as the shared NixOS module. See the Nebula PKI reference. just nebula-revoke NAME refuses registered nixosConfigurations hosts and stops if the fleet cannot be evaluated. Remove a retiring host from the flake and its configuration references before revoking it; this prevents deleting a secret still required by an active NixOS configuration.