Update matrix.nix
Some checks failed
Deploy NixOS / deploy (push) Failing after 15s

This commit is contained in:
2026-02-13 10:16:35 -07:00
parent 71b58cd57b
commit 54dab83782

View File

@@ -80,25 +80,25 @@ in
# keyFile = livekitKeyFile; # keyFile = livekitKeyFile;
# }; # };
systemd.services.lk-jwt-service.environment.LIVEKIT_FULL_ACCESS_HOMESERVERS = serverName; # systemd.services.lk-jwt-service.environment.LIVEKIT_FULL_ACCESS_HOMESERVERS = serverName;
systemd.services.livekit.serviceConfig.LoadCredential = [ # systemd.services.livekit.serviceConfig.LoadCredential = [
"turn-cert:/var/lib/acme/${matrixRtcDomain}/fullchain.pem" # "turn-cert:/var/lib/acme/${matrixRtcDomain}/fullchain.pem"
"turn-key:/var/lib/acme/${matrixRtcDomain}/key.pem" # "turn-key:/var/lib/acme/${matrixRtcDomain}/key.pem"
]; # ];
systemd.services.livekit.after = [ "acme-${matrixRtcDomain}.service" ]; # systemd.services.livekit.after = [ "acme-${matrixRtcDomain}.service" ];
systemd.services.livekit.requires = [ "acme-${matrixRtcDomain}.service" ]; # systemd.services.livekit.requires = [ "acme-${matrixRtcDomain}.service" ];
systemd.services.livekit-key = { # systemd.services.livekit-key = {
before = [ "lk-jwt-service.service" "livekit.service" ]; # before = [ "lk-jwt-service.service" "livekit.service" ];
wantedBy = [ "multi-user.target" ]; # wantedBy = [ "multi-user.target" ];
path = with pkgs; [ livekit coreutils gawk ]; # path = with pkgs; [ livekit coreutils gawk ];
script = '' # script = ''
echo "Key missing, generating key" # echo "Key missing, generating key"
echo "lk-jwt-service: $(livekit-server generate-keys | tail -1 | awk '{print $3}')" > "${livekitKeyFile}" # echo "lk-jwt-service: $(livekit-server generate-keys | tail -1 | awk '{print $3}')" > "${livekitKeyFile}"
''; # '';
serviceConfig.Type = "oneshot"; # serviceConfig.Type = "oneshot";
unitConfig.ConditionPathExists = "!${livekitKeyFile}"; # unitConfig.ConditionPathExists = "!${livekitKeyFile}";
}; };
networking.firewall = { networking.firewall = {