From 84d4c06e91f3e23534972ebb6076bd252cdd0c35 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Sat, 21 Feb 2026 16:27:12 -0300 Subject: [PATCH] feat(capytal,chat): voice calls support --- capytal/chat.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/capytal/chat.nix b/capytal/chat.nix index 2f62e4b..b9d5f10 100644 --- a/capytal/chat.nix +++ b/capytal/chat.nix @@ -20,6 +20,13 @@ support_role = "m.role.admin"; support_email = "admin@capytal.cc"; support_mxid = "@admin:capytal.cc"; + + rtc_focus_server_urls = [ + { + type = "livekit"; + livekit_service_url = "https://livekit.capytal.cc"; + } + ]; }; }; }; @@ -144,5 +151,28 @@ ''; }; + services.livekit = { + enable = true; + settings = { + port = 9410; + bind_addresses = ["0.0.0.0"]; + rtc = { + tcp_port = 9411; + port_range_start = 50100; + port_range_end = 50200; + use_external_ip = true; + enable_loopback_candidate = false; + }; + }; + keyFile = config.sops.secrets."livekit/key_file".path; + }; + + services.lk-jwt-service = { + enable = true; + port = 9412; + keyFile = config.sops.secrets."livekit/key_file".path; + livekitUrl = "wss://livekit.capytal.cc"; + }; + nixpkgs.config.permittedInsecurePackages = ["olm-3.2.16"]; }