about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJeff Slight <jslight90@gmail.com>2019-09-19 16:00:27 -0700
committerJeff Slight <jslight90@gmail.com>2019-09-19 16:41:37 -0700
commit366be2ea324571a7b40410e79d45e900ff6b0ae2 (patch)
tree2d6550d30c906ba1efd4de6cf98bbab17d52c716 /nixos
parent036bf4982a6cc2fc9deb17bfe938193bc4d16cce (diff)
downloadnixlib-366be2ea324571a7b40410e79d45e900ff6b0ae2.tar
nixlib-366be2ea324571a7b40410e79d45e900ff6b0ae2.tar.gz
nixlib-366be2ea324571a7b40410e79d45e900ff6b0ae2.tar.bz2
nixlib-366be2ea324571a7b40410e79d45e900ff6b0ae2.tar.lz
nixlib-366be2ea324571a7b40410e79d45e900ff6b0ae2.tar.xz
nixlib-366be2ea324571a7b40410e79d45e900ff6b0ae2.tar.zst
nixlib-366be2ea324571a7b40410e79d45e900ff6b0ae2.zip
nixos/mattermost: unescape unicode characters in config.json
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/mattermost.nix4
1 files changed, 3 insertions, 1 deletions
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;