From da780be326922e8f87dd87d18dfbb850c32132b1 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 17 Sep 2024 10:19:55 +0200 Subject: [PATCH] fix(coturn): correct attribute names and import configuration Change 'coturn' to 'services.coturn' and renamed 'hostname' to 'hostName'. Added 'coturn.nix' to the default imports in the main configuration file. --- systems/x86_64-linux/mx/coturn.nix | 4 ++-- systems/x86_64-linux/mx/default.nix | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/systems/x86_64-linux/mx/coturn.nix b/systems/x86_64-linux/mx/coturn.nix index 9136f71..15aee9a 100644 --- a/systems/x86_64-linux/mx/coturn.nix +++ b/systems/x86_64-linux/mx/coturn.nix @@ -4,9 +4,9 @@ sopsFile = ../../../.secrets/hetzner/coturn.yaml; # bring your own password file }; - coturn = { + services.coturn = { enable = true; - realm = config.services.nextcloud.hostname; + realm = config.services.nextcloud.hostName; static-auth-secret-file = config.sops.secrets."coturn/static-auth-secret".path; use-auth-secret = true; lt-cred-mech = true; diff --git a/systems/x86_64-linux/mx/default.nix b/systems/x86_64-linux/mx/default.nix index 62a7a28..d0fd296 100644 --- a/systems/x86_64-linux/mx/default.nix +++ b/systems/x86_64-linux/mx/default.nix @@ -13,6 +13,7 @@ ./forgejo.nix ./nginx.nix ./network.nix + ./coturn.nix ]; metacfg = {