From f64b1f95344edacc3205b68d20500fe1be8a9a91 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 16 Oct 2022 14:32:04 +0200 Subject: [PATCH] mattermost: don't read config from database apparently the nixpkgs mattermost module simply ignores its own config if mutableConfig is false, and reads whatever config is currently in the database (in our case, old stuff involving auth.infra4future.de). This overwrites that. --- services/mattermost.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/mattermost.nix b/services/mattermost.nix index b70d234..f60302c 100644 --- a/services/mattermost.nix +++ b/services/mattermost.nix @@ -36,6 +36,9 @@ in { systemd.services.mattermost.serviceConfig.EnvironmentFile = "/persist/mattermost/secrets.env"; + # overwrite the -c flag given in the module. this can be removed once we're on nixos 22.05 + systemd.services.mattermost.serviceConfig.ExecStart = + lib.mkForce "${pkgs.mattermost}/bin/mattermost -c /persist/mattermost/config/config.json"; # couldn't figure out how to actually overwrite modules, so now # there's two mattermost modules ... @@ -125,7 +128,7 @@ in { EnableSMTPAuth = true; SMTPUsername = "noreply@infra4future.de"; SMTPServer = "mail.hacc.space"; - SMTPPort = 465; + SMTPPort = "465"; SMTPServerTimeout = 10; ConnectionSecurity = "TLS"; };