From 366be2ea324571a7b40410e79d45e900ff6b0ae2 Mon Sep 17 00:00:00 2001 From: Jeff Slight Date: Thu, 19 Sep 2019 16:00:27 -0700 Subject: nixos/mattermost: unescape unicode characters in config.json --- nixos/modules/services/web-apps/mattermost.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/modules/services/web-apps/mattermost.nix b/nixos/modules/services/web-apps/mattermost.nix index 8c7fc4056adc..97dc0dd3c66b 100644 --- a/nixos/modules/services/web-apps/mattermost.nix +++ b/nixos/modules/services/web-apps/mattermost.nix @@ -6,7 +6,9 @@ let cfg = config.services.mattermost; - defaultConfig = builtins.fromJSON (readFile "${pkgs.mattermost}/config/config.json"); + defaultConfig = builtins.fromJSON (builtins.replaceStrings [ "\\u0026" ] [ "&" ] + (readFile "${pkgs.mattermost}/config/config.json") + ); mattermostConf = foldl recursiveUpdate defaultConfig [ { ServiceSettings.SiteURL = cfg.siteUrl; -- cgit 1.4.1