This repository has been archived on 2024-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/hosts/lime/services/matrix.nix

45 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2024-05-29 17:15:20 +02:00
{ pkgs, config, ... }:
let
baseUrl = "https://${config.networking.domain}";
in
{
services.matrix-synapse = {
enable = true;
settings = {
server_name = config.networking.domain;
public_baseurl = baseUrl;
enable_registration = false;
trusted_key_servers = [{ server_name = "matrix.org"; }
{
server_name = "tchncs.de";
}];
suppress_key_server_warning = true;
enable_registration_without_verification = true;
max_upload_size = "9861M";
listeners = [
{
port = 8008;
bind_addresses = [ "0.0.0.0" ];
type = "http";
tls = false;
x_forwarded = true;
resources = [{
names = [ "client" "federation" ];
compress = true;
}];
}
];
2024-06-12 10:11:04 +02:00
# TODO add sliding sync
2024-05-29 17:15:20 +02:00
server_notices = {
system_mxid_localpart = "server";
system_mxid_display_name = "Server Notices";
room_name = "Server Notices";
room_topic = "Notices about 4o1x5.dev";
auto_join = true;
};
};
};
}