По образцу lamet.opencodes.zeroq.su — два новых vhost в
modules/server/nginx.nix:
- etherea.opencodes.zeroq.su → http://100.125.228.63:4096
(tailscale). Апстрим: opencode v2.1.1 в service-режиме
(`opencode serve --service`), читает ~/.config/opencode/service.json
(hostname 0.0.0.0, port 4096, basic-auth opencode/<пароль>).
Проверено с sapphira: HTTP 200, отдаёт web-UI OpenCode.
- dejavu.opencodes.zeroq.su → http://100.86.134.111:4096
(tailscale). На момент правки хост офлайн (last seen 8h) — апстрим
не проверен, vhost отдаст 502, пока хост не вернётся в tailnet.
DNS: *.opencodes.zeroq.su — wildcard CNAME на home.zeroq.su,
правки зоны не требуются. LE-сертификаты для обоих доменов выпущены
(acme-etherea/dejavu.opencodes.zeroq.su.service — status=0).
Проверки: nix build sapphira (ok), nixos-rebuild switch (ok),
.ci/checks.sh --no-build (4/4 PASS), nginx -t (ok), systemctl --failed
пуст.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
plasma-workspace 6.8.1 убрал VirtualKeyboardLoader из
org.kde.breeze.components, а SDDM-тема WhiteSur (whitesur-kde 2024-11-18)
всё ещё его инстанцирует. Гритер не мог загрузить Main.qml:
Main.qml:316:9: VirtualKeyboardLoader is not a type
Fallback to embedded theme
и экран входа молча деградировал до встроенной плоской заглушки.
- overlays/patch-whitesur-sddm.pl: заменить VirtualKeyboardLoader на
Keyboards.KWinVirtualKeyboard (API актуальной breeze-темы), сохранив
интерфейс inputPanel (keyboardActive/showHide), который используется
в других местах Main.qml
- overlays/pkgs.nix: overlay на whitesur-kde, гоняет патч по sddm/*/Main.qml
- theming.nix: включить whitesur-cursors (kwin писал
`Failed to load cursor theme "WhiteSur-cursors"`)
- kde.nix: sddm.extraPackages = plasma-desktop + qtsvg (требование пакета)
Проверено на rydiwo (поколение 91, display-manager перезапущен):
Fallback to embedded theme — 0 раз, VirtualKeyboardLoader is not a type — 0,
гритер создал вью на реальном выходе (DSI-1, 1324x828).
Сборка opencode 2.2.5 падала на проверке fixed-output деривации:
hash mismatch in '…-opencode-node_modules-2.2.5.drv'
specified: sha256-xfOVcw1+waLVNhFDwzOtzxrUSQEogvn88YomydOlhwc=
got: sha256-prx9dX7kUvs/E3zopkaPk5LXh3xJAy5sZeum/W8L7cA=
Пин от 2026-11-04 17:14 был взят за 2.5 часа ДО того, как апстрим это
починил: `c399e1b7` «opencode: fix hash», коммитнут 2026-11-04 19:47 и
выставляет ровно `sha256-prx9dX7kUvs…` для Linux.
`nix flake update nixpkgs-master` → 04c9f4a18de5 (2026-11-04 23:16).
После него drvPath совпал с собранным на 24-ядерном WSL-хосте
(`jaj1m6ab…-opencode-2.2.5.drv`), оттуда забраны opencode-2.2.5 и
opencode-node_modules-2.2.5; система собралась локально без изменений,
активирована (поколение 869), живой сервер отвечает version 2.2.5.
Владелец: «нужно, чтобы разрешения выдавались автоматически, без открытых
вкладок и auto-accept». Причина: любой путь вне рабочей папки сессии поднимает
`external_directory`, и ход стоит, пока человек не нажмёт кнопку — агент,
который работает с хостом (~/.local/share/metaagent, /etc/nixos, другой
репозиторий), без присмотра работать не может.
Форма — v2 `permissions`, упорядоченный набор {action, resource, effect}
(устаревший `permission` с ask|allow|deny не используется). Разрешены
external_directory, read, edit, bash, webfetch, websearch.
Это заменяет человеческий клик, а не правила безопасности агента: secrets/,
*.env, *.pem и .ssh остаются закрытыми политикой, а не запросом.
Файл на sapphira лежал с 2026-11-01 руками (правка моделей до 0c3e0d5),
HM отказывался затирать и падал с 'would be clobbered' — ДО применения
остальных домашних изменений. Из-за этого home-manager-oqyude.service
в failed, а дом. генерация стояла на 30 октября (721e6e8, 0c3e0d5 не
активированы). Содержимое совпадает с объявленным, перезапись безопасна.
НЕ активировано намеренно: активация перезапускает opencode-web
(ловушка 11). Применять switch'ем, когда сессия может умереть.
nixpkgs 31ecbaca удалил опцию boot.initrd.verbose, поэтому nixos-rebuild switch падал в фазе оценки (evaluation) на rydiwo. Управление verbosity initrd теперь через rd.systemd.show_status в kernelParams.
Опции services.logind.lidSwitch / lidSwitchDocked переименованы в nixpkgs в services.logind.settings.Login.HandleLidSwitch / HandleLidSwitchDocked; значения сохранены.
Заменяет рукописный drop-in ~/.config/systemd/user/opencode-web.service.d/10-proxy.conf.
Проверено живьём 2026-10-30: без прокси opencode.ai недоступен (TCP timeout),
opencode serve падает на загрузке конфига провайдеров, opencode-go отсутствует
в реестре. С прокси 127.0.0.1:10808 — работает.
После активации home-manager рукописный drop-in надо удалить (он больше не нужен).
Владелец разрешил слить вручную (у oqyude/nixos merge_allowed=false —
живая конфигурация хоста, director.sh merge такой репозиторий не берёт).
Модуль не активируется: host.samba-ad.enable = false. Включение упирается
в assertion'ы — порт 53 занят coredns, 445 занят файловым samba; оба
конфликта названы, а не обойдены.
Исследование по исходникам пина 31ecbaca (26.11), samba 4.23.10:
* В nixpkgs `services.samba` НЕТ ни одной опции AD DC — ни
enableActiveDirectoryDomainController, ни domainName/realm/serverRole.
Единственное похожее — settings.global.security = "ads" (вход в
существующий домен как member server, а не DC).
* pkgs.samba собран --without-ad-dc --without-ldap --without-ads: бинаря
samba-tool в нём нет вообще (проверено на работающем на sapphira
файловом сервере). Для DC нужен отдельный пакет; берём минимальный
override samba4.override { enableLDAP = true; enableDomainController = true; },
а не pkgs.samba4Full (cups + avahi + cephfs лишним весом).
* samba-tool domain provision берёт realm из smb.conf (флага --realm нет),
пишет <targetdir>/etc/smb.conf, private/, state/sysvol/, bind-dns/.
Шейры [sysvol] и [netlogon] обязательны: lp.get("path", "<имя шейры>")
возвращает path именно этой секции, иначе MissingShareError.
Непустой smb.conf не перезаписывается — поэтому шаблон задаёт
dns forwarder / dns port / server services.
* Провижининг НЕ идемпотентен → идемпотентность сделана в юните
(наличие private/sam.ldb → skip, exit 0).
Конфликты на sapphira (ссороться за порты нельзя, оба — assertion):
53/tcp+udp coredns (зоны zeroq.su + home.arpa) против AD DNS
445/tcp samba-smbd (файловый сервер) против DC (нужен для sysvol/GPO)
Оба порта — с внятным текстом и тремя вариантами решения; по умолчанию
предложен отдельный хост. Время не блокер: chronyd, расхождение ≈0.5 мс
при требовании ≤5 минут.
Что добавлено:
* modules/server/samba-ad.nix — опция host.samba-ad (enable = false),
юниты samba-ad-provision.service (oneshot, идемпотентный) и
samba-ad.service (Type=notify), smb.conf-шаблон в state dir,
пароль администратора только из sops-секрета (в рантайме).
* modules/server/default.nix — импорт (выключено).
* modules/server/samba.nix — samba-smbd теперь создаётся только при
services.samba.enable. Без этого выключение файлового сервера (нужное,
чтобы отдать 445 DC'у) оставляло фантомный юнит без ExecStart —
ровно ловушка ADR-0004 / R1.14. Для работающих хостов поведение
не меняется ни на байт.
Доказательства (ничего не активировано):
* enable=false: конфигурация оценивается, юнитов samba-ad* нет, AD-вариант
samba в замыкании отсутствует (0 совпадений).
* enable=true: конфигурация падает с тремя assertion'ами (realm не задан,
53 занят, 445 занят) — правильный результат.
* enable=true + конфликты сняты: drvPath
/nix/store/hm0i8qmni34b2j5bcjak1yvmg2s3y20p-nixos-system-sapphira-default.drv,
в плане сборки AD-сборка samba, шаблон smb.conf и оба юнита.
Открытые решения владельца (имя домена/realm, где живёт DC, делегирование
DNS, пароль, нужен ли DC на sapphira) — в .agent/notes/samba-ad-2026-10-30.md.
После перезагрузки 2026-10-30 17:33 юнит
home-oqyude-.config-beets.mount был в failed:
mount: special device /home/oqyude/Music does not exist
Источник монтирования — симлинк, который создаёт home-manager при своей
активации (~/Music -> /nix/store/…-home-manager-files/Music -> ~/External/Music).
Монтирование стартовало параллельно с активацией и проиграло гонку.
Порядок (After=), а не Requires=: на хостах, где home-manager для этого
пользователя не запускается, зависимость от несуществующего юнита уронила
бы монтирование целиком, а порядок без такого юнита просто игнорируется.
Сейчас юнит руками перезапущен и активен; правка нужна, чтобы это не
повторилось при следующей загрузке.
Проверка живая, не по конфигу: из 19 локальных портов, на которые
ссылается nginx, не отвечает ровно один — 127.0.0.1:19999. Netdata в
этой системе не установлен вообще: ни юнита, ни процесса, только
1.5 ГБ мусора в /var/cache/netdata.
Без upstream vhost отдаёт 502, то есть домен выглядел как «сломанный
сервис», хотя сервиса нет. Вернуть — вместе с модулем netdata.
Владелец: immich нужен, glances нет.
immich — возвращён импорт и vhost immich.zeroq.su. Юниты были
enabled, но остановлены в 15:07; кэш ML-моделей (2.9 ГБ),
который директор удалил, скачается заново при первом
ML-задании. Пик памяти ~1.3 ГБ.
glances — выключен (порт 61208, openFirewall открывал его наружу).
Записи coredns (glances.zeroq.su) оставлены: указывают
в закрытый порт.
Остаются выключенными только uptime-kuma и open-webui — оба были failed.
Устаревший комментарий про «open-webui никогда не комментировался» снят:
теперь это неправда.
Все три не работали — выключение не отнимает функцию, а убирает падающие
юниты и фоновую работу:
uptime-kuma uptime-kuma.service failed (timeout) с 15:09 сегодня
open-webui podman-open-webui.service failed; образ 4.69 ГБ тянулся
с ghcr.io и обновлялся автоматически
immich immich-server / immich-machine-learning / redis-immich —
все inactive dead, но кэш ML-моделей занимал 2.9 ГБ
Убраны и nginx-вхосты (immich.zeroq.su, kuma.zeroq.su, open.zeroq.su):
vhost без upstream отдаёт 502.
Измерено перед правкой: все сервисы вместе ~640 МиБ RSS, то есть
разгрузка тут не про память, а про мусор (падающие юниты, 4.69 ГБ
образа, 2.9 ГБ кэша моделей).
Вернуть: раскомментировать строки — в комментариях рядом указано, что
вернуть вместе с чем.
nixpkgs 31ecbaca (flake update 7a5c9c6) replaced both options with
mkRemovedOptionModule: leaving them makes evaluation of EVERY host fail
with 'Failed assertions', so the flake update alone could not be deployed.
- services.nextcloud.config.adminuser -> removed
- services.nextcloud.config.adminpassFile -> removed
upstream: 'use nextcloud-occ user:add <username>'
On this installation the admin user already exists, so the two settings
were already inert. Verified with
nix build --dry-run .#nixosConfigurations.sapphira...toplevel
=> evaluates; 744 derivations will be built, 1640 paths fetched.
sapphira has no direct route to opencode.ai: opencode serve hangs on
GET https://opencode.ai/console/api/v2/config and dies with 'failed to
load OpenCode provider config'. The provider registry stays empty
(opencode-go missing -> all oh-my-opencode-slim agents fail) and the
context7/gh_grep MCP servers hang until TimeoutError.
Declare HTTP_PROXY/HTTPS_PROXY (+ lowercase) and NO_PROXY/no_proxy on the
opencode-web user service instead of the hand-written systemd drop-in.
The proxy is the 3x-ui 'host-egress' inbound (mixed socks5+http),
published on the host loopback by modules/containers/3x-ui.nix.
NO_PROXY keeps podman (10.88/10.89), tailscale (100.64/10), LAN
(192.168.1/24), localhost and the internal *.zeroq.su zone direct.
The telegram control channel reaches Telegram through the node outbound
telegram-edge-of-truth: the panel's inbound host-egress listens on 10808
inside the container. Publishing it on 127.0.0.1 only lets host
processes use it (curl -x socks5h://127.0.0.1:10808) without exposing
it to the LAN.
The change was live in the running container but uncommitted; committed
by the director on the owner's instruction (E.2, 2026-10-27) so the next
rebuild does not silently drop it.
T59 фиксирует задачу владельца 2026-10-27 и её проверки: pwsh 7.6.6 в
systemPackages только у sapphira (otreca/atoridu/rydiwo/wsl — 0), сборка
nixos-rebuild build --flake .#sapphira успешна, .ci/checks.sh --no-build
PASS 4 / FAIL 0.
ADR-0008 объясняет границу выбора: configurations/server.nix (тело модуля
ровно одной записи реестра) вместо modules/essentials/packages.nix (общий
список всех NixOS-хостов, замыкание powershell — 300.2 МиБ), и почему
powershell в lib/ci-tools.nix при этом остаётся (PATH джобы раннера ≠
системный PATH). Отдельно зафиксировано, что правка НЕ развёрнута: бинарь
появится только после nixos-rebuild switch|boot.
Без pwsh в системном PATH ps1-реализация metaagent-director (director.ps1
и её тесты) на sapphira всегда уходит в skip и проверяется только чтением.
Место — configurations/server.nix (тело модуля ровно одной записи реестра,
sapphira), а не modules/essentials/packages.nix: тот список общий для всех
NixOS-хостов флейка, включая 1-vCPU vds otreca, а замыкание powershell —
300 МиБ. Остальные хосты не меняются (проверено nix eval по всем).
The MINIMAX Token Plan keeps its own ceiling, invisible to the director's
quota probe: on 2026-10-26 every sub-agent died on spawn with
"Token Plan usage limit reached (2056)" while the probe for the same
provider reported decision=ok. The director already mints its worker
sessions on opencode-go/deepseek-v4.1-flash (state/quota.json
provider_selection), so this makes agents, workers and the gate share one
provider and one budget.
modelFast drives all five slim agents and the global default model, so the
whole set moves together. Build-verified: nixos-rebuild build --flake
.#sapphira -> rc=0. Not activated: switch restarts opencode-web, where the
sessions doing the deploy live.
Бандл v3.10.2 тянул ядро Xray 26.10.10, которое апстрим отозвал:
release notes v3.11.0 говорят «the pulled v26.10.10 binary pins are
replaced». Пин остаётся явным тегом (R1.5) — :latest не возвращается.
- modules/containers/3x-ui.nix: v3.10.2 -> v3.11.0, история инцидента в
комментарии сохранена и дополнена.
- .agent/decisions/0007-3x-ui-3.11.0.md: контекст, решение, последствия
(REALITY: fp in {chrome,firefox,safari}, minClientVer 1.0.0, R1.16),
риски, откат через бэкап тома db/ (миграции БД необратимы), чеклист
после rebuild. index.json: запись 0007.
- AGENTS.md, project-rules.md (R1.5/R1.8), project-state.md,
manifest.md (T43/T44), .ci/checks.sh: фактические упоминания версии и
номера строки (:62 -> :71). Хроника notes/3x-ui-xray-26.9.md не
переписана, добавлена ссылка на 0007.
After the runs-on: native fix the workflow finally executes: run 141 was
cancelled by the concurrency group, run 144 on 3c1269b succeeded in ~97
seconds with checks.sh --no-build plus the sapphira drvPath evaluation.
nix-checks.yml asked for ubuntu-latest while the only runner advertises the
single label 'native'; it therefore never produced a run. After switching to
runs-on: native, Gitea created run 141 for nix-checks.yml. Update T39 notes
and the checks/CI docs; use eval drvPath wording (not a build).
The workflow could never run: it asked for 'runs-on: ubuntu-latest', but the
only runner (gitea-runner-ci-sapphira) advertises exactly one label, 'native'
(host executor). test-runner.yml used 'native' and runs; nix-checks never
produced a single run.
- runs-on: native
- drop cachix/install-nix-action and 'nix profile install sops': the host
profile already provides nix, sops, git and python3
- evaluate sapphira with 'nix eval --raw ...toplevel.drvPath' instead of
'nix build --dry-run': the runner user is not a Nix trusted user, so a
dry-run build would want store write access; evaluation is the actual gate
- timeout 15 min, concurrency cancel-in-progress
The only runner is gitea-runner-ci-sapphira, running on the same 2-core /
5.6 GiB host as ~20 production services. Evaluating all seven configurations
took 40+ minutes and pushed the host into swap.
- checks.sh is invoked with --no-build, so check #2 (full nix flake check,
every host) no longer runs in push CI
- only .#nixosConfigurations.sapphira is evaluated: a broken sapphira is an
immediate CI-runner outage; other hosts are verified explicitly per change
- workflow_dispatch added, timeout 45 -> 20 min, and concurrency group
cancels superseded runs instead of queueing them on the same host
Docs: AGENTS checks section, project-state test-runner row, T39 notes.
Live state after switch: guard condition present on 13/13 units under [Unit],
phantom samba/nextcloud/immich units gone, nginx serves lamet with upstream
100.106.21.39:4096 (6061 no longer answers). systemctl --failed is empty.
- T3: premise refuted by a runtime 'nft list ruleset' on otreca - 'inet nixos-fw'
already has 'policy drop'; the hand-written 'inet filter' only rate-limits SYN
and must NOT get a drop (it would blackhole the VDS). AGENTS invariant 6 and
the traps table updated; T3-A proposal marked withdrawn. No code change.
- T38: herdr_web_token rotated (old -> 401, new -> 200); literal removed from
manifest.json (token -> secret_ref). Old token in git history is now invalid.
- T20: completed (100755, bash invocation, .gitea workflow).
- T57: T38-T57 registered in manifest.json, schemas aligned with the real
format, dangling request.json $schema resolved, new dependency-free
validator wired as check #9.
- T4/T52: completed; invariant 2, R1.2, ADR-0004 and project-state updated;
checkpoints.phases.execution -> completed, handoff -> in_progress.
- T58 filed: triple 'allowedUDPPorts = [ 53 ]' duplicate.
AGENTS.md also carries the .omo trap-row update from the parallel opencode
session (commit 8079536), which was left uncommitted in the shared tree.
Same owner written as '.a = ...; .b = ...;' repeated dotted paths is now one
attrset block. Behaviour-preserving (values, list order and comments kept):
- 3xui-reconfig description/serviceConfig in server/ and vds/ (separate units,
different PANEL_URL - deliberately not extracted into a shared module)
- authelia after/wants inside the existing config = mkIf wrapper
- gitea-actions-runner settings: runner/metrics/health_check/container
- boot.loader.grub, services.logind, pxe-infra.bridge, pipewire.alsa
- nix.{distributedBuilds,buildMachines}; nix.settings on WSL (mkForce kept)
- build.activation on termux (nix-on-droid freeform)
Also in this commit: lamet.opencodes.zeroq.su upstream 6061 -> 4096
(verified by nix eval of the vhost proxyPass).
nix-instantiate --parse: 12/12 files OK.
mkStorageGuard returned a serviceConfig fragment, so ConditionPathIsMountPoint
landed in [Service] where systemd ignores it - the guard was dead on 13 units.
- helper now returns a unitConfig fragment ([Unit]); RequiresMountsFor still
intentionally absent
- consumers re-pointed at the real unit names: samba-smbd, phpfpm-nextcloud,
immich-server, podman-3xui_app, podman-taperotation-{backend,frontend};
the old serviceConfig keys silently rendered three empty phantom units
- vds excluded: otreca has no /home/oqyude/External and a live condition would
skip podman-3xui_app and kill the 3x-ui panel at pubray1.zeroq.su
Verified: sapphira and otreca toplevel builds exit 0; all 13 units carry the
condition under [Unit] (line 3), zero occurrences under [Service].
Metastate only — no code touched. Brings the three state files in line with
what actually landed between f484a89 and 1adf6dd.
.agent/tasks/manifest.md
Overview table now carries the real status per task: 10 done, 10 blocked.
T38 is marked partial (handoff-summary.md cleaned, manifest.json:412 is
outside this session's mandate). T47/T49/T56 are re-classified from
"pending" to "blocked" because doing them needs home-manager merge
semantics confirmed and there is no nix binary on this machine.
Adds a section for a finding that was not in the plan: HEAD contained
invalid Nix — modules/server/default.nix:79 and modules/vds/default.nix:40
called `config.modules."3x-ui".reconfig` without declaring `config` in the
module arguments, so sapphira and otreca should not have evaluated. Fixed
in 39e1887. That is independent proof that `nix flake check` never ran.
.agent/context/project-state.md
"What's next" becomes "what was done", with the commit for each item.
Testing status updated: 4 checks now (the import-graph one was added), and
the "never ran" claim is scoped to the pre-2026-10-24 state since T39 fixed
all three defects. modules/options.nix row updated — it is 81 lines now,
with modules/pxe-infra/options.nix added.
.agent/handoff-summary.md
Entry point gains the commit table, the parallel-session collision note
(two commits were absorbed by the other session: 95a4f92 for T40 and
39e1887 for T42, plus 2991164 swallowing my staged deletions), and a
next-action list that is addressed to the owner rather than the next agent.
Not pushed.
modules/options.nix was 433 lines, of which 351 (80%) were the
`options.pxe-infra` block. That file is documented as the home of
cross-module options, but the pxe-infra surface belongs to one feature that
already owns a directory of eight modules.
modules/pxe-infra/default.nix had already made this call for the sibling
option and said so at :26-33: "Declared here (not in modules/options.nix)
because this task's scope is modules/pxe-infra/ only". This commit applies the
same rule to the rest of the surface, which also removes the split where
`pxe-infra.bootloader` lived in one file and
`pxe-infra.bootloader.bypassFallback` in another.
The moved block is byte-identical — md5 e672a94dd9676cff1e3dd5096499232c for
both the old range (modules/options.nix:82-432) and the new
(modules/pxe-infra/options.nix:15-365), 351 lines. modules/options.nix is now
81 lines and holds only `host.builder` and `host."3x-ui"`, plus a pointer to
where feature-local options live.
Behaviour is preserved:
- the declared option set is unchanged: still exactly
`options.pxe-infra` and `options.pxe-infra.bootloader.bypassFallback`;
- `modules/pxe-infra/default.nix` imports ./options.nix, so the option
exists on every host that imports the umbrella;
- the only place outside modules/pxe-infra/ that touches it is
configurations/mini-laptop.nix:88, and that host imports
../modules/pxe-infra at :17. No other host reads config.pxe-infra.
Verified: import-graph green (120 files, 120 references), checks PASS 3 /
FAIL 0.
Not verified here: `nix flake check`. There is no nix binary on this machine,
so evaluation must be confirmed by the owner before this is deployed.
Not pushed.
.gitignore had `scripts` as an unanchored pattern. A pattern without a slash
matches a directory of that name at ANY depth, so a future
modules/*/scripts/ would have been silently ignored — the kind of thing that
only shows up as "why is my file not in git". It is anchored to /scripts/
now. No tracked file was matched before or after (verified with
`git ls-files | git check-ignore --stdin --no-index`, empty both ways).
The 22 scripts in .temp/ are not committed wholesale: they are eight
iterations of one T4 test (t4-final-v5..v8), three of another
(t4-live-test{,v2,v3}), plus one-shot deploy/cleanup/diagnose scripts that
hardcode `cd /mnt/s/Git/nixos` and perform umount / mount --move. Committing
them would be noise, not knowledge.
One of them is reusable and non-destructive, so it is preserved:
.ci/verify/guard-non-destructive-verify.sh. It creates two throwaway systemd
units (ConditionPathIsMountPoint=/nonexistent must refuse to start,
=/mnt/services must start) and resets them, so it can be run against a live
host to prove the condition is evaluated at all. That is the check the owner
needs for T52. Content is byte-identical to the .temp original
(md5 b0ac8081aae568a3db921fb64f4c0a05) and passes shellcheck -S error.
Not pushed.
modules/wsl/nix-serve.nix was a byte-identical copy of
modules/server/nix-serve.nix — md5 0aca1128f12f975d2376db21fbd92e40 for both.
Two live hosts, two copies of the same 25 lines: any fix to one silently
missed the other.
The WSL module now imports ../server/nix-serve.nix.
Equivalence is established by content, not by a run: the module body is
identical, and its `sopsFile = ./secrets/nix-serve.yaml` resolves relative to
the importing file — so WSL now reads
modules/server/secrets/nix-serve.yaml, which is itself byte-identical to the
copy it used to read (md5 af6e04419e8b3dd467c8cb693f374782 for both). The
evaluated configuration is therefore unchanged; only the paths differ.
`services.nix-serve` is now declared by exactly one file in the repo.
Verified: import-graph check green (119 .nix files, 119 references), and
`bash .ci/checks.sh --no-build` -> PASS 3 / FAIL 0.
Note: modules/wsl/secrets/nix-serve.yaml is now unreferenced. It is NOT
deleted here — secrets need explicit owner sign-off, see
.agent/tasks/manifest.md T53.
Not pushed.
AGENTS.md is the one file an agent always reads, so a wrong path there sends
the next reader somewhere that does not exist. Eleven references were stale:
:78 modules/server/nginx.nix:109,253 -> :109 and :378
(253 is inside the herdr forward-auth block, not a Tailscale bind)
:97 server.nix:130 -> configurations/server.nix:129
:100 3x-ui.nix:54 -> modules/containers/3x-ui.nix:62
(the file `modules/3x-ui.nix` does not exist; modules/3x-ui/ holds
only default.nix, which declares the reconfig option)
:101 3x-ui.nix:33-35 -> modules/containers/3x-ui.nix:35
:104 server/default.nix:7-44, comment 38-41
-> :9-50, comment 43-49
:105 opencode.nix:354 -> home/modules/opencode.nix:449
:98 mobile.nix / wsl.nix -> configurations/mobile.nix / configurations/wsl.nix
:99 users.nix:66 -> modules/users.nix:66
:109 vds.nix:73-91 -> configurations/vds.nix:71-92
:111 server.nix:61-63 -> configurations/server.nix:61-63
:123 users.nix:99 -> modules/users.nix:99
The bare names in the trap table were ambiguous: `server.nix` could mean
configurations/server.nix or modules/server/default.nix. They now carry their
directory.
Verified with a one-off scan: all 16 `path:line` references in AGENTS.md now
resolve to an existing file with at least that many lines. Documentation only
— no .nix file is touched, so nothing can change evaluation.
Not pushed.
Check #1 allows `:latest` images listed in LATEST_ALLOWLIST. The list still
carried `ghcr.io/mhsanaei/3x-ui:latest` with the comment "panel frozen on
:latest", but the panel has been pinned to `ghcr.io/mhsanaei/3x-ui:v3.10.2`
since 2026-10-20 (modules/containers/3x-ui.nix:62, R1.5). The entry matched
nothing, and the comment stated the opposite of the invariant it cited.
Consequence of the stale entry: if someone reverted the pin to `:latest`, the
check would have stayed green and said nothing. Verified by mutation — with
v3.10.2 temporarily replaced by :latest the check now reports
"Images using :latest (not in whitelist): ghcr.io/mhsanaei/3x-ui:latest";
before this commit the same mutation passed silently.
Also: check #4's description named `mkServiceStorage`, while the guard the
consumers actually call is `mkStorageGuard` (lib/xlib/helpers.nix:180). Both
names exist in that file and mean different things, so the comment pointed at
the wrong helper. Now it names the right one and says so explicitly.
`bash .ci/checks.sh --no-build` -> PASS 3 / FAIL 0, before and after; the
current tree contains exactly two `:latest` images, both tape-rotation, both
still whitelisted.
Not pushed.