use nixpkgs#548367
This commit is contained in:
parent
dc626aa1bb
commit
b0d928d0f2
1 changed files with 31 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
|
|
@ -9,6 +10,10 @@ let
|
|||
lkJwtServiceDomain = "lk-jwt.call.federated.nexus";
|
||||
in
|
||||
{
|
||||
# TODO: remove once https://github.com/NixOS/nixpkgs/pull/548367 is merged
|
||||
disabledModules = [ "services/matrix/lk-jwt-service.nix" ];
|
||||
imports = [ inputs.lk-jwt-service-module.outPath ];
|
||||
|
||||
systemd.services = {
|
||||
livekit.serviceConfig.Restart = lib.mkForce "always";
|
||||
lk-jwt-service.serviceConfig.Restart = lib.mkForce "always";
|
||||
|
|
@ -31,13 +36,18 @@ in
|
|||
|
||||
lk-jwt-service = {
|
||||
enable = true;
|
||||
livekitUrl = "wss://${livekitDomain}";
|
||||
keyFile = config.services.livekit.keyFile;
|
||||
environment = {
|
||||
LIVEKIT_URL = "wss://${livekitDomain}";
|
||||
LIVEKIT_KEY_FILE = config.services.livekit.keyFile;
|
||||
LIVEKIT_JWT_BIND = "127.0.0.4:8080";
|
||||
LIVEKIT_FULL_ACCESS_HOMESERVERS = [ "federated.nexus" ];
|
||||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts = {
|
||||
"${livekitDomain}".extraConfig = "reverse_proxy 127.0.0.1:7880";
|
||||
"${lkJwtServiceDomain}".extraConfig = "reverse_proxy 127.0.0.1:8080";
|
||||
"${lkJwtServiceDomain}".extraConfig =
|
||||
"reverse_proxy ${config.services.lk-jwt-service.environment.LIVEKIT_JWT_BIND}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue