Infrastructure notes¶
Things the code no longer shows, so they are easy to get wrong. Moved out of
AGENTS.md (Issue #2831); the Hyprland and desktop items are also loaded as a
path-scoped rule in .claude/rules/desktop.md.
- Declared Hyprland keys live in
hosts/common/nixos/omarchy-keys.nix, notbindings.lua; the repo wins on a declared chord. Seedocs/architecture/desktop.md, Keys. - No binary cache of our own. There is no nix-serve/harmonia anywhere in the repo;
nothing listens on p620:5000.
modules/nix/nix.nixsubstitutes from cache.nixos.org and nix-community.cachix.org;flake.nixadds cuda-maintainers and devenv as flake-levelextra-substituters. Tailscale mesh is used for remote SSH access, not caching. - Monitoring was removed (Prometheus/Grafana/Loki/Alertmanager). Use
journalctlandsystemctl status. - One Wayland session: Nixarchy (Omarchy on Hyprland), plus GNOME. All three
hosts offer exactly
omarchy-wayland-sessionandgnome-session. niri, labwc, mango, Noctalia and DankMaterialShell are all gone, and so are their flake inputs — anything in the docs or a comment describingdms-shell.nix, "Niri (DMS)", "Hyprland (DMS)" or${DESK_SHELL:-noctalia}is describing a tree that no longer exists. programs.hyprlandis enabled by the nixarchy module, not by us (#1562). It is what supplies the portal, uwsm and the wayland-session basics, so it cannot be turned off — but it also registers its own Hyprland login entry.hosts/common/nixos/omarchy-sole-hyprland.nixforces the module off and restates the parts Nixarchy needs, so only Omarchy's session is offered. Read that file before touching anything Hyprland-adjacent: there is no option to exclude one session, and the two obvious workarounds both fail (a filteredmkForceonsessionPackagesreads the value it defines; a session-less repackage is rejected by the option's type, which demandsprovidedSessions != [ ]).- The Omarchy theme is the source of truth for colours (#1562).
omarchy theme set Xretints Omarchy's own 24 files at once and atheme-set.dhook writes X intonixarchy-theme.nixat the flake root;modules/desktop/stylix-theme.nixmaps that theme'scolors.tomlonto base16 and feeds Stylix. Everything Omarchy cannot reach at runtime — Plymouth, GRUB, the console, fonts, the remaining home-manager targets — follows at the next rebuild, not instantly. GTK, Qt colours and icons follow live through the theme engine; Stylix's HM gtk/gnome/kde targets are off so they do not overwrite it (#2370). Two consequences: switching a theme leaves the tree dirty andnhsrefuses a dirty tree (same asnixarchy-applywithapps.nix), and p510 follows the same palette becauseinputs.nixarchyis flake-wide. Theme palettes and the fastfetch config are read from the pinned omarchy source (inputs.nixarchy.inputs.omarchy), not the package, so evaluation never builds it (#2930). Reach the package throughinputs.nixarchy, neverconfig.programs.nixarchy.package— nixarchy consumes Stylix, so that closes the module fixpoint and evaluation dies with infinite recursion. - p510 runs the Omarchy session for real (#1585, superseding the
arrangement #1562 left behind). It got a monitor, so the three settings that
held Omarchy at arm's length were inverted:
displayManager = true(Omarchy's SDDM; GDM is gone),defaultSession = "omarchy"andhost.class = "workstation". Two divergences from p620/razer remain, both deliberate:preinstalls = false(4 GiB of desktop software,cef-binaryalone 1.9 GiB;/would go 50.5 → 57.6 GiB) and autologin stays on — Sunshine is a systemd user service that only exists inside a live graphical session, so on a host that reboots unattended the alternative is a greeter nobody is there to answer. razer keeps autologin off because PRIME-sync Optimus misbehaves with a greeter respawn; p510 is pure NVIDIA without PRIME.gnome-remote-desktopcan still serve GNOME over RDP but cannot serve Hyprland — that is what Sunshine replaced. - Sunshine (
modules/desktop/sunshine.nix,features.sunshine, p510 only) is the standing exception to the DynamicUser/ProtectHome rule inAGENTS.md(Non-negotiable 2): it needs the session's Wayland socket, GPU nodes and input devices. Four traps, in the order you hit them: it starts only with a graphical session; a DPMS-off output streams solid black with a clean log (wakeDisplay = true, and the dispatcher is Lua —hl.dsp.dpms({ action = "enable" }));webOriginsmust include the port or the web UI refuses every POST with a CSRF error; and setting any option puts the config in the Nix store, making the web UI's Configuration tab read-only. Seedocs/applications/sunshine.md. - Self-hosted GitHub Actions runners for nixarchy's KVM/ISO checks live on
p620 only —
modules/services/nixarchy-runner.nix, enabled throughservices.nixarchy-runnerinhosts/p620/configuration.nix. Four runner units (github-runner-nixarchy,-nixarchy-2…-nixarchy-4) with the labelsnixos/kvm/big. p510 ran them too until #1738 removed them. They are targeted, not idle: nixarchy'snightly.ymlisruns-on: [self-hosted, nixos, kvm, big], andinstall-check.ymlpicks per run — agatejob onubuntu-latestdecides whether the change can affect an install and emits the self-hosted label set only when it can. p620'sbuildDiris/var/lib/nix-build, its own 480 GB SSD (#2182). The module sets bothnix.settings.build-dirand the nix-daemonTMPDIR, becausebuild-dirsupersedesTMPDIRand setting only the latter goes quietly inert. p510 keeps the same two settings in its host config, pointed at/home/nix-build: never/mnt/img_pool, an SMR ST1000LM035 at ~9.5 MB/s, where a 16 GB VM install hangs rather than failing cleanly. - An NVIDIA driver version bump cannot be applied with
switch— the new userspace meets the old in-memory module, threenvidia-*units fail and the activation rolls back.nhsdetects this and falls back tobootmode; the reboot is still yours. - DEX5550 is offline; Samsung and HP are decommissioned.
- MicroVMs come from nixarchy's templates (
hosts/common/nixos/omarchy-microvm.nix); the dormant p510 guest files underhosts/p510/nixos/microvm/were never wired up and were removed in #2931. - Fleet addresses live in
hosts/common/fleet.nix(tailnet IPs of p620, p510 and razer, and p510's LAN192.168.1.65, which needs a DHCP reservation on the router). Hosts read it withimport ../common/fleet.nix; change an address there, not in a host file (#2936). - Every herdr pane's shell runs in its own
herdr-pane-<pid>.scope(home/development/herdr.nix, #2959). Before, all panes shared the cgroup of the terminal that started herdr, so when p620 ran out of memory systemd-oomd killed that cgroup and with it the herdr server and every agent (2026-11-15). Panes opened before a deploy keep the old cgroup until reopened.