40 lines
696 B
Nix
40 lines
696 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
service_configs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
../secrets/matrix_reg_token.nix
|
|
];
|
|
|
|
services.matrix-conduit = {
|
|
enable = true;
|
|
package = pkgs.conduwuit;
|
|
|
|
settings.global = {
|
|
port = 6167;
|
|
server_name = service_configs.https.domain;
|
|
database_backend = "rocksdb";
|
|
allow_registration = true;
|
|
|
|
new_user_displayname_suffix = "";
|
|
|
|
trusted_servers = [
|
|
"matrix.org"
|
|
"constellatory.net"
|
|
"tchncs.de"
|
|
"envs.net"
|
|
];
|
|
|
|
# without this, conduit fails to start
|
|
address = "0.0.0.0";
|
|
};
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"d /var/lib/private/matrix-conduit 0750 conduit conduit"
|
|
];
|
|
}
|