WIP: Livekit

This commit is contained in:
2026-04-30 13:22:20 +02:00
parent d46ce2d93e
commit 59907f7ece
8 changed files with 56 additions and 74 deletions
+2 -2
View File
@@ -126,13 +126,13 @@ let
preferred_domain = "jitsi.cyperpunk.de";
};
element_call = {
url = "https://element.cyperpunk.de/widgets/element-call";
url = "https://element-call.cyperpunk.de";
use_exclusively = true;
participant_limit = 8;
brand = "Cyperpunk Call";
};
livekit = {
livekit_service_url = "https://cyperpunk.de/livekit/jwt";
livekit_service_url = "https://cyperpunk.de/livekit/jwt/";
};
setting_defaults = {
custom_themes = catppuccinThemes;
+1 -1
View File
@@ -4,8 +4,8 @@
{
imports = [
./synapse.nix
# ./coturn.nix
./clients.nix
./lk-jwt.nix
];
#networking.firewall = {
+30
View File
@@ -0,0 +1,30 @@
{ config, ... }:
{
sops.secrets.livekit_key = { };
services.livekit = {
enable = true;
openFirewall = true;
keyFile = config.sops.secrets.livekit_key.path;
settings = {
rtc = {
tcp_port = 7881;
udp_port = 7882;
port_range_start = 50000;
port_range_end = 60000;
use_external_ip = true;
node_ip = "178.254.8.35";
};
room = {
auto_create = false;
enabled_codecs = [
{ mime = "video/VP8"; }
{ mime = "video/VP9"; }
{ mime = "video/H264"; }
{ mime = "audio/opus"; }
];
enable_remote_unmute = true;
};
};
};
}
+19
View File
@@ -0,0 +1,19 @@
{ config, ... }:
let
domain = "cyperpunk.de";
synapseUrl = "http://100.109.179.25:8008";
in
{
sops.secrets.livekit_key = { };
services.lk-jwt-service = {
enable = true;
keyFile = config.sops.secrets.livekit_key.path;
livekitUrl = "wss://cyperpunk.de/livekit/sfu";
};
systemd.services.lk-jwt-service.environment = {
LIVEKIT_FULL_ACCESS_HOMESERVERS = domain;
MATRIX_BASE_URL = synapseUrl;
};
}
+1
View File
@@ -49,6 +49,7 @@
names = [
"client"
"federation"
"openid"
];
compress = false;
}