Skip to content

Commit

Permalink
nixos/mattermost: unescape unicode characters in config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jslight90 committed Sep 19, 2019
1 parent 036bf49 commit 366be2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos/modules/services/web-apps/mattermost.nix
Expand Up @@ -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;
Expand Down

0 comments on commit 366be2e

Please sign in to comment.