bf0890b77a622d115b59d03c9937dd64098d08ff
Matrix Homeserver on NixOS
Prerequisites
- NixOS installed
- Domain with DNS pointing to server (A/AAAA Record matrix.domain.tld)
- Port 443
Setup
- Clone to
/etc/nixos(or copy files) - Edit
matrix.nixline 7: changeenter-your-domainto your domain - Copy your
hardware-configuration.nixinto the directory - Rebuild:
nixos-rebuild switch --flake /etc/nixos#nixos-matrix
Create Admin Account
sudo matrix-synapse-register_new_matrix_user
Prompts for: username, password, admin (y/n)
Verify
systemctl status matrix-synapse postgresql nginx
Test federation: https://federationtester.matrix.org
Notes
- Registration disabled by default (
enable_registration = false) - PostgreSQL configured automatically
- Intended usecase ipv6 lxc container with remote reverse proxy
Description
Languages
Nix
100%