nixcfg/systems/x86_64-linux/mx
Harald Hoyer 42c52bd87f refactor(mx): drive opencode bot via direct chat-completions API
The bot no longer shells out to `opencode run`. Instead it POSTs to the
OpenAI-compatible /chat/completions endpoint exposed by llama-server on
halo.hoyer.tail:8000 directly. This removes the Bun/sqlite cold-start
overhead per request, drops the pkgs.opencode runtime dependency, and
eliminates the ExecStartPre dance that materialized config.json into the
service's $HOME.

Conversation history is now stored as a proper OpenAI `messages` list
with system/user/assistant roles, instead of the XML blob that was
inlined into a single `opencode run` argument. The interactive opencode
setup (config/opencode/config.json) is unchanged — only the bot stops
depending on it.

The module gains a `modelBaseUrl` option; `model` is now the bare model
name (`halo-8000`) without the provider/ prefix that the opencode CLI
required.
2026-05-13 16:38:58 +02:00
..
nextcloud-claude-bot nix fmt 2026-02-24 13:25:42 +01:00
nextcloud-opencode-bot refactor(mx): drive opencode bot via direct chat-completions API 2026-05-13 16:38:58 +02:00
acme.nix nix fmt 2026-02-24 13:25:42 +01:00
backup.nix nix fmt 2024-11-19 10:31:29 +01:00
coturn.nix nix fmt 2026-02-24 13:25:42 +01:00
default.nix feat(mx): add Nextcloud Talk opencode bot pointing at halo.hoyer.tail:8000 2026-05-13 15:08:18 +02:00
disk-check.nix refactor(mx): extract disk check services into disk-check.nix 2026-04-20 10:28:27 +02:00
forgejo.nix feat(sops): trigger service restarts on secret rotation 2026-05-03 15:23:40 +02:00
goaccess.nix A new start 2024-03-21 15:00:36 +01:00
hardware-configuration.nix nix fmt 2024-11-19 10:31:29 +01:00
kicker.nix nix fmt 2024-11-19 10:31:29 +01:00
mailserver.nix fix(mx): update stale comment in Roundcube config to reflect SSL/TLS 2026-03-24 15:08:55 +01:00
network.nix nix fmt 2024-11-19 10:31:29 +01:00
nextcloud.nix feat(mx): nextcloud33 2026-03-24 12:00:38 +01:00
nginx.nix chore: nix fmt 2026-05-03 14:57:49 +02:00
ntfy.nix feat: extend systemd-email-notify module with optional ntfy support 2026-03-24 16:38:14 +01:00
postgresql.nix feat(mx): enable daily PostgreSQL backup via pg_dumpall 2026-03-24 16:13:10 +01:00
rspamd.nix nix fmt 2024-11-19 10:31:29 +01:00
rustdesk.nix refactor: improve formatting and update dependencies 2025-02-25 08:56:02 +01:00
server-raid.nix nix fmt 2024-11-19 10:31:29 +01:00
users.nix A new start 2024-03-21 15:00:36 +01:00