| .github | ||
| configurations | ||
| modules | ||
| packages | ||
| scripts | ||
| buildQemuVM.sh | ||
| flake.lock | ||
| flake.nix | ||
| original_flake.nix | ||
| README.md | ||
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