Moves the Prosody server, xmpp-web frontends (chat/plaza), and Forgejo's wiki-update webhook notifier from pinix to blunix, co-located with Traefik/ACME so TLS comes straight from Traefik's cert store instead of the old manual copy process. pinix's prosody/xmpp-web/webhook modules stay in place but deactivated as a fallback, matching the earlier Forgejo migration's pattern. Implements docs/intent/xmpp-umzug-pinix-blunix.md. Deployed and verified live on blunix (nixos-rebuild switch, chat/plaza returning 200, prosody healthy, agent XMPP listeners reconnected). Two first-bootstrap bugs found and fixed during that verification, both specific to bringing Prosody up on a host it never ran on before: - prosody-certs-sync.service used to call a blocking `systemctl reload-or-restart prosody.service` whenever the cert file differed from what's installed -- including on first activation, where prosody.service's own start job is still queued behind this unit (Requires+After), deadlocking forever. Now only reloads an already-running Prosody; ordering alone brings up a fresh one with the cert just installed. - hosts/blunix/localServices/secrets.nix force-owned the global `bindPW` secret to root with the (previously correct) rationale that it belongs to a pinix-only service. Prosody now runs on blunix too and needs to read it directly as its own LDAP bind config include, so that override no longer applies to it. pinix's own deploy (data migration, DNS/webhook cutover) is separate follow-up work, not part of this commit. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANg2L2xUmNJ45t9mcv6HVT
49 lines
815 B
Nix
49 lines
815 B
Nix
{
|
|
imports = [
|
|
#dns
|
|
./adguard.nix
|
|
./tailscale.nix
|
|
|
|
./lldap.nix
|
|
|
|
./dex.nix
|
|
|
|
# ./emptyCerts.nix
|
|
|
|
./website.nix
|
|
./fileserver-external.nix
|
|
./wordpress.nix
|
|
./launcher.nix
|
|
./tasks.nix
|
|
./drawio.nix
|
|
./webhook.nix
|
|
./agent-codex.nix
|
|
./orga-agent.nix
|
|
./board-agent.nix
|
|
./forgejo.nix
|
|
|
|
#xmpp
|
|
./prosody/setup-prosody.nix
|
|
./xmpp-web.nix
|
|
|
|
./headscale.nix
|
|
./oauth2-proxy.nix
|
|
../../nix-gc.nix
|
|
./secrets.nix
|
|
./packages.nix
|
|
./graphify-refresh.nix
|
|
./packages-stable.nix
|
|
./nixbuild.nix
|
|
./restic.nix
|
|
./fail2ban.nix
|
|
|
|
#traefik
|
|
./traefik
|
|
./traefik/routes-external.nix
|
|
./traefik/routes-internal.nix
|
|
./traefik/forgejo.nix
|
|
./traefik/dex.nix
|
|
./traefik/prosody.nix
|
|
./traefik/cal.nix
|
|
];
|
|
}
|