From 1a071343f27e8ceacfbe4337e6a8e7be903285a9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Milan=20P=C3=A4ssler?= <mil@nyantec.com>
Date: Wed, 8 Jul 2020 23:47:37 +0200
Subject: [PATCH] nioxs/jicofo: use existing generator

---
 nixos/modules/services/networking/jicofo.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nixos/modules/services/networking/jicofo.nix b/nixos/modules/services/networking/jicofo.nix
index 64e57eef97fb..8c4926009443 100644
--- a/nixos/modules/services/networking/jicofo.nix
+++ b/nixos/modules/services/networking/jicofo.nix
@@ -142,7 +142,7 @@ in
 
     environment.etc."jitsi/jicofo/sip-communicator.properties".source =
       pkgs.writeText "sip-communicator.properties" (
-        concatStringsSep "\n" (mapAttrsToList (k: v: "${k}=${v}") cfg.config)
+        generators.toKeyValue {} cfg.config
       );
     environment.etc."jitsi/jicofo/logging.properties".source =
       mkDefault "${pkgs.jicofo}/etc/jitsi/jicofo/logging.properties-journal";