Some checks failed
Check / eval (push) Has been cancelled
New modules/nixos/greeter.nix owns the greetd block (moved out of
default.nix) plus the theming, the Plymouth model — baked at SYSTEM
rebuild from nomarchy.system.stateFile. Two parts, because tuigreet
draws on the VT with the 16 ANSI slots: console.colors becomes the
theme's ansi[] (vt.default_* kernel params — which also themes raw
ttys and the LUKS passphrase prompt), and tuigreet gets a --theme of
NAMED slots (its parser is ratatui Color::from_str, checked in source;
the names map to the standard indexes the retinted palette now
serves). A sparse state without ansi skips theming cleanly.
Verified: V0; V1 — the template-system toplevel bakes the full --theme
spec into greetd.toml and all three vt.default_{red,grn,blu} palettes
into kernel-params. A checks.greeter VM test was attempted and dropped
after bisecting: tuigreet dies under runNixOSTest even without the
flag (harness limit; nixpkgs's own greetd test uses agreety) —
recorded in agent/MEMORY.md. Remains: V3 rendering +
theme-follows-rebuild on hardware (HARDWARE-QUEUE).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
5.7 KiB
5.7 KiB
Memory — durable lessons, learned the hard way
Curated, not append-only: one line per fact, newest at the top of its section; delete entries that stop being true. Details usually live in a docs/ROADMAP.md decision record — pointer given as (§ item). Add a fact here the moment a debugging session teaches you something a future iteration would otherwise rediscover.
Testing & VM recipes
- tuigreet dies silently under runNixOSTest (even bare, no theme flag: greetd sits as "(greetd)" with no child, nothing in the journal — its stderr goes to the VT) — nixpkgs' own greetd test uses agreety instead. Greeter rendering is interactive-ISO/hardware tier; don't burn another session on a checks.greeter VM test.
- In VM tests
pgrep -f PATTERNcan match the test backdoor's ownbash -cwrapper (the pattern is in its cmdline) — usepgrep -xor a[t]uigreet-style bracket pattern. - A checks.* fixture CANNOT be a writeText/toFile state file read at eval time ("path … is not valid" — flake check's eval store won't realise it): extract the logic into a pure importable file and unit-test THAT (monitor-rules.nix / checks.display-profiles is the pattern).
- CI (
.gitea/workflows/check.yml) is eval-tier only: the act_runner is a docker container (no systemd, no /dev/kvm). Container gotchas are documented in the workflow header (single-user Nix + nixbld users,sandbox=falsefor Stylix IFD, Nix pinned 2.31.5 vs lazy-trees, no JS actions past node20) — learned over the legacy repo's 57 runs; read them before touching the workflow. - The Gitea instance is 1.25.4 —
on: scheduleworkflows are supported; bump.yml assumes the Actions token can push tomain(standard Gitea behaviour, but unconfirmed until the first run lands). - The git server is Gitea (gitea/act_runner via docker-compose), NOT
Forgejo — workflows are read from
.gitea/workflows/(or.github/), never.forgejo/workflows/(a whole push cycle was lost to that). - Reusable headless VM harness:
checks.*via runNixOSTest — existing examples to crib from:distro-id(boots +switch-to-configuration dry-activate),hardware-toggles(kernel cmdline/PAM assertions),battery-charge-limit(fake Mains adapter viatest_power, real udev uevent,InvocationIDchange proves the restart). - Themed-desktop screenshots work headlessly: software-GL Hyprland
(
LIBGL_ALWAYS_SOFTWAREon virtio-gpu) +machine.screenshot()QMP dump — prototyped 2026-06-19, kept as the fallback for theme previews (§ Visual theme picker). - Hyprland/Ghostty need guest GL (
virtio-vga-gl,gl=on) in interactive QEMU or the session won't start; black screen ≈ missing GL (docs/TESTING.md § gotchas). - No KVM = slow, not broken; don't read slowness as failure.
Known-broken / watchlist
- btrfs-assistant "segfault" was unprivileged-only (re-diagnosed
2026-07-04): libbtrfsutil's unprivileged subvolume iteration crashes on
btrfs-progs 6.17.1 (upstream-fixed after); as root it works, and the
pkexec launcher runs it as root. The real distro bug was no polkit
agent in the session (every pkexec failed silently) — hyprpolkitagent
now ships (hyprland.nix exec-once).
checks.snapshot-guiguards the root path. Lesson: before "app X is broken", check WHO it runs as — and whether polkit prompts can render at all (§ Snapshot browse/restore). - NixOS release bump is a trap: the discarded attempt
(branch deleted 2026-06-22) hit a Hyprland OOM blocker; a redo is a
deliberate
v2, never part of routine lock bumps. theme-state.jsonis git-tracked inside an 86 MB flake tree, so every state write re-copies the source before eval — the wallpapers-artifact split (BACKLOG LATER) is the decided fix (§ Faster switches).
Gotchas (cost a debugging session once)
- Hyprland binds match the exact modmask: a shifted keysym (
question) needs SHIFT inmodsor the bind never fires — the keypress falls through to the focused window (§ item 26; caught on hardware, invisible to eval-tier tests). - Never kill a Wayland session-lock client (hyprlock): its crash failsafe drops to a tty instead of unlocking (§ Hibernate double-unlock).
- rofi
element-icon sizeis one value = a square cell;WxHsilently collapses and non-square icons letterbox — pre-crop images square at build (§ Visual theme picker). - WirePlumber 0.5 monitor rules can only early-match
device.api;device.product.nameetc. bind after the rule runs — surgical libcamera scoping is impossible (§ Webcam). hyprctl switchxkblayoutis a global layout flip; per-device isolation needsdevice[<name>]:kb_layoutkeywords (§ Keyboard layouts).- Waybar's clock captures the timezone at construction — a zone change
needs SIGUSR2 (watcher in
timezone.nix) (§ Automatic timezone). - Waybar
persistent_workspaces(underscore) is dead syntax silently ignored; the hyphen form is honoured and renders phantom workspaces (§ Waybar shows non-existent workspaces). - GTK4/libadwaita/Qt6 read light/dark from the portal's
org.freedesktop.appearance color-scheme(dconf), not Stylix polarity (§ GTK/Qt ignore the theme's mode). - Update order matters downstream:
sys-update(lock) beforehome-update, or desktop changes are silently skipped against the old lock (README § 3). - grub
loadfonts every.pf2in a theme dir — reuse a bundled DejaVu rather than shipping fonts (§ Distro branding). - The Claude Code harness drops machine-local files into the repo
(
.claude/skills/…) mid-session — nevergit add -Ablindly; checkgit status --shortfor strangers first (they're gitignored now, but the next surprise won't be) (§ loop hygiene).