Add Matrix Conduit service configuration to Nix setup

This commit is contained in:
Root User 2026-02-10 00:29:03 +01:00
parent 139345f84e
commit d234901432
Signed by: root
GPG key ID: 087F0A95E5766D72
2 changed files with 42 additions and 1 deletions

View file

@ -52,13 +52,41 @@
openFirewall = true;
};
## Add Conduit for Matrix
# See https://search.nixos.org/options?channel=unstable&query=services.matrix-conduit.
# and https://docs.conduit.rs/configuration.html
services.matrix-conduit = {
enable = true;
settings.global = {
allow_registration = true;
# You will need this token when creating your first account.
registration_token = "testtoken1234";
# server_name = yourDomainName;
port = 12244;
# Bind to all interfaces so Traefik on the network can reach Conduit.
address = "0.0.0.0";
database_backend = "rocksdb";
server_name = "https://lgbtq.prg-radio.org";
# See https://docs.conduit.rs/turn.html, and https://github.com/element-hq/synapse/blob/develop/docs/turn-howto.md for more details
# turn_uris = [
# "turn:your.turn.url?transport=udp"
# "turn:your.turn.url?transport=tcp"
# ];
# turn_secret = "your secret";
};
};
networking.firewall.allowedTCPPorts = [
80
443
12244
];
networking.firewall.allowedUDPPorts = [
80
443
12244
];
system.stateVersion = "25.11";