diff options
Diffstat (limited to 'nixpkgs/nixos/modules/services/networking/netbird/coturn.nix')
-rw-r--r-- | nixpkgs/nixos/modules/services/networking/netbird/coturn.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nixpkgs/nixos/modules/services/networking/netbird/coturn.nix b/nixpkgs/nixos/modules/services/networking/netbird/coturn.nix index 746d70a07250..29ff1e8fc15e 100644 --- a/nixpkgs/nixos/modules/services/networking/netbird/coturn.nix +++ b/nixpkgs/nixos/modules/services/networking/netbird/coturn.nix @@ -60,6 +60,7 @@ in default = null; description = '' The password of the user used by netbird to connect to the coturn server. + Be advised this will be world readable in the nix store. ''; }; @@ -142,7 +143,11 @@ in ]; }); - security.acme.certs.${cfg.domain}.postRun = optionalString cfg.useAcmeCertificates "systemctl restart coturn.service"; + security.acme.certs = mkIf cfg.useAcmeCertificates { + ${cfg.domain}.postRun = '' + systemctl restart coturn.service + ''; + }; networking.firewall = { allowedUDPPorts = cfg.openPorts; |