diff --git a/nixos/server/coturn.nix b/nixos/server/coturn.nix index abb109e..4c77867 100644 --- a/nixos/server/coturn.nix +++ b/nixos/server/coturn.nix @@ -1,4 +1,4 @@ -{outputs, ...}: { +{outputs, config, ...}: { services = { coturn = rec { enable = true; @@ -19,7 +19,7 @@ "turn:turn.${outputs.secrets.jimDomain}:3478?transport=udp" "turn:turn.${outputs.secrets.jimDomain}:3478?transport=tcp" ]; - turn_shared_secret = static-auth-secret; + turn_shared_secret = config.services.coturn.static-auth-secret; turn_user_lifetime = "1h"; }; diff --git a/nixos/server/synapse.nix b/nixos/server/synapse.nix index 71cb5bc..ff267ff 100644 --- a/nixos/server/synapse.nix +++ b/nixos/server/synapse.nix @@ -1,4 +1,4 @@ -{pkgs, outputs, config, ...}: { +{pkgs, outputs, ...}: { services = { # Synapse Matrix server matrix-synapse = {