From c86db3c02bbe6baac9af837bbdd96852938ad959 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Wed, 18 Mar 2026 23:44:24 -0600 Subject: [PATCH] Update matrix.nix --- modules/matrix.nix | 61 ---------------------------------------------- 1 file changed, 61 deletions(-) diff --git a/modules/matrix.nix b/modules/matrix.nix index a062547..6999997 100644 --- a/modules/matrix.nix +++ b/modules/matrix.nix @@ -3,70 +3,9 @@ let livekitKeyFile = "/var/lib/livekit/livekit.key"; serverName = "atri.dad"; - matrixDomain = "matrix.atri.dad"; matrixRtcDomain = "matrixrtc.atri.dad"; in { - services.matrix-continuwuity = { - enable = true; - settings = { - global = { - server_name = serverName; - address = [ - "127.0.0.1" - "::1" - ]; - port = [ 6167 ]; - max_request_size = 104857600; - allow_registration = false; - allow_encryption = true; - allow_federation = true; - new_user_displayname_suffix = ""; - log_to_journald = true; - trusted_servers = [ - "matrix.org" - "chat.blahaj.zone" - ]; - ip_range_denylist = [ - "127.0.0.0/8" - "10.0.0.0/8" - "172.16.0.0/12" - "192.168.0.0/16" - "100.64.0.0/10" - "192.0.0.0/24" - "169.254.0.0/16" - "198.18.0.0/15" - "::1/128" - "fe80::/10" - "fc00::/7" - ]; - - zstd_compression = true; - gzip_compression = true; - brotli_compression = true; - - allow_local_presence = true; - allow_incoming_presence = true; - allow_outgoing_presence = false; - allow_device_name_federation = false; - - well_known = { - server = "${matrixDomain}:443"; - client = "https://${matrixDomain}"; - }; - - matrix_rtc = { - foci = [ - { - type = "livekit"; - livekit_service_url = "https://${matrixDomain}/livekit/jwt"; - } - ]; - }; - }; - }; - }; - services.livekit = { enable = true; openFirewall = true;