add Mattermost service configuration and related variables

This commit is contained in:
2026-04-13 22:49:18 -04:00
parent e3c43a2d8a
commit 352b589ad1
5 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
{
config,
}:
let
vars = import ./vars.nix;
in
{
services.mattermost = {
enable = true;
siteUrl = "https://mattermost.nayeonie.com"; # Set this to the URL you will be hosting the site on.
database = {
peerAuth = true; # This allows Mattermost to connect to the database without a password, which is more secure when both are on the same machine.
create = true;
driver = "postgres";
};
dataDir = "${vars.primary_mattermost}/mattermost";
};
}