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.
This commit is contained in:
Harald Hoyer 2024-09-17 10:19:55 +02:00
parent c894294ce3
commit da780be326
2 changed files with 3 additions and 2 deletions

View file

@ -4,9 +4,9 @@
sopsFile = ../../../.secrets/hetzner/coturn.yaml; # bring your own password file sopsFile = ../../../.secrets/hetzner/coturn.yaml; # bring your own password file
}; };
coturn = { services.coturn = {
enable = true; enable = true;
realm = config.services.nextcloud.hostname; realm = config.services.nextcloud.hostName;
static-auth-secret-file = config.sops.secrets."coturn/static-auth-secret".path; static-auth-secret-file = config.sops.secrets."coturn/static-auth-secret".path;
use-auth-secret = true; use-auth-secret = true;
lt-cred-mech = true; lt-cred-mech = true;

View file

@ -13,6 +13,7 @@
./forgejo.nix ./forgejo.nix
./nginx.nix ./nginx.nix
./network.nix ./network.nix
./coturn.nix
]; ];
metacfg = { metacfg = {