From 0aed0095c4ebe7f99b023c8b013146bc56edde1e Mon Sep 17 00:00:00 2001 From: arcnmx Date: Fri, 28 Oct 2022 13:19:59 -0700 Subject: [PATCH] fix: daiyousei ci fixes --- services/prosody.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/services/prosody.nix b/services/prosody.nix index 1e3d5f5d..cfd28f01 100644 --- a/services/prosody.nix +++ b/services/prosody.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: with lib; let +{ tf, config, pkgs, lib, ... }: with lib; let ctcfg = config.services.coturn; in { networks.internet = { @@ -52,12 +52,13 @@ in { group = "domain-auth"; }; }; + deploy.tf.variables.turn-external-secret.export = true; services.coturn = { enable = true; cert = config.networks.internet.cert_path; pkey = config.networks.internet.key_path; - static-auth-secret-file = config.files.turn-external-secret.path; + static-auth-secret-file = config.secrets.files.turn-external-secret.path; realm = "turn.kittywit.ch"; }; @@ -82,7 +83,8 @@ in { username = "prosody"; } turn_external_host = "turn.kittywit.ch" - turn_external_secret = "${tf.variables.turn-external-secret.import}" + '' + optionalString tf.state.enable '' + turn_external_secret = "${tf.variables.turn-external-secret.get}" ''; virtualHosts = { "xmpp.kittywit.ch" = {