Cleanup now that I finally got the LSP working... so many warnings.
Some checks failed
Deploy NixOS / deploy (push) Failing after 18s
Some checks failed
Deploy NixOS / deploy (push) Failing after 18s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
livekitKeyFile = "/run/livekit.key";
|
||||
@@ -12,13 +12,19 @@ in
|
||||
settings = {
|
||||
global = {
|
||||
server_name = serverName;
|
||||
address = [ "127.0.0.1" "::1" ];
|
||||
address = [
|
||||
"127.0.0.1"
|
||||
"::1"
|
||||
];
|
||||
port = [ 6167 ];
|
||||
max_request_size = 104857600;
|
||||
allow_registration = false;
|
||||
allow_encryption = true;
|
||||
allow_federation = true;
|
||||
trusted_servers = [ "matrix.org" "chat.blahaj.zone" ];
|
||||
trusted_servers = [
|
||||
"matrix.org"
|
||||
"chat.blahaj.zone"
|
||||
];
|
||||
ip_range_denylist = [
|
||||
"127.0.0.0/8"
|
||||
"10.0.0.0/8"
|
||||
@@ -98,9 +104,16 @@ in
|
||||
systemd.services.livekit.requires = [ "acme-${matrixRtcDomain}.service" ];
|
||||
|
||||
systemd.services.livekit-key = {
|
||||
before = [ "lk-jwt-service.service" "livekit.service" ];
|
||||
before = [
|
||||
"lk-jwt-service.service"
|
||||
"livekit.service"
|
||||
];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = with pkgs; [ livekit coreutils gawk ];
|
||||
path = with pkgs; [
|
||||
livekit
|
||||
coreutils
|
||||
gawk
|
||||
];
|
||||
script = ''
|
||||
echo "Key missing, generating key"
|
||||
echo "lk-jwt-service: $(livekit-server generate-keys | tail -1 | awk '{print $3}')" > "${livekitKeyFile}"
|
||||
@@ -110,10 +123,17 @@ in
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 7880 7881 5349 ];
|
||||
allowedTCPPorts = [
|
||||
7880
|
||||
7881
|
||||
5349
|
||||
];
|
||||
allowedUDPPorts = [ 3478 ];
|
||||
allowedUDPPortRanges = [
|
||||
{ from = 50000; to = 60000; }
|
||||
{
|
||||
from = 50000;
|
||||
to = 60000;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user