Find a file
2026-03-24 09:21:16 -05:00
.github Initial commit: Matrix Synapse NixOS configuration 2025-12-11 19:09:59 -08:00
configurations Update Readme and make sure repo is clean 2026-03-24 09:19:55 -05:00
modules Update Readme and make sure repo is clean 2026-03-24 09:19:55 -05:00
packages Able to access grafana from localhost but not element. 2026-03-07 22:26:22 -06:00
scripts Update Readme and make sure repo is clean 2026-03-24 09:19:55 -05:00
buildQemuVM.sh Ready for a test deployment. 2026-03-07 09:21:25 -06:00
flake.lock Update Readme and make sure repo is clean 2026-03-24 09:19:55 -05:00
flake.nix Update Readme 2026-03-24 09:21:16 -05:00
original_flake.nix first commit that builds - worked through updates and fixed path traversal vuln. 2026-02-28 11:49:11 -06:00
README.md Update Readme and make sure repo is clean 2026-03-24 09:19:55 -05:00

Fork of: https://github.com/MaxwellDPS/synapstnix

Matrix Synapse - NixOS Configuration

A complete, production-ready Matrix Synapse homeserver as a NixOS flake with enterprise security features.

Features

Core Services

  • Matrix Synapse - Homeserver
  • Element Web - Web client
  • PostgreSQL - Database
  • Redis - Caching
  • Nginx - Reverse proxy with rate limiting

Optional Services

  • Coturn - TURN/STUN server for VoIP
  • Prometheus + Grafana - Monitoring

Security Features

  • Fail2ban - Brute force protection
  • System hardening - Kernel parameters, audit logging
  • Rate limiting - Nginx-based protection

Quick Start

  • First, install NixOS and enable flakes on the target host.
  • Then, use nixos-rebuild switch with the production output of the flake.

Troubleshooting

Services Not Starting

systemctl status matrix-synapse
journalctl -u matrix-synapse -f

Database Issues

sudo -u postgres psql -c "SELECT 1"
systemctl status postgresql

Federation Test

curl https://federationtester.matrix.org/api/report?server_name=YOUR_DOMAIN

License

MIT