The Elixir release's start script reads releases/COOKIE which isn't baked
in, so the service crashed on boot (cat: releases/COOKIE: No such file).
Set RELEASE_COOKIE in the systemd Environment to fix startup.
- AgentRegistry is now file-backed (AGENTS_FILE, default
/var/lib/n8n-openai/agents.json): agents persist across restarts and
can be added/removed without a redeploy.
- New admin endpoints (separate ADMIN_API_KEY):
GET /admin/agents
POST /admin/agents {model, webhook}
DELETE /admin/agents/:model
- AGENTS env only seeds the store on first boot; the file is authoritative.
- NixOS module sets AGENTS_FILE under the writable StateDirectory.
Export nixosModules.default so the service (systemd unit, service user,
sops secret) is defined in the flake, not re-declared in each host config.
Consume with imports = [ inputs.n8n-openai-adapter.nixosModules.default ]
+ services.n8n-openai-adapter = { enable = true; domain = ...; port = ...; }.