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

10
.vscode/mcp.json vendored Normal file
View File

@@ -0,0 +1,10 @@
{
"servers": {
"nixos": {
"command": "uvx",
"args": [
"mcp-nixos"
]
}
}
}

View File

@@ -14,6 +14,7 @@
./haproxy
./hardware-changes.nix
./hydra.nix
./mattermost.nix
./minio.nix
./networking.nix
./nextcloud.nix

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";
};
}

View File

@@ -40,6 +40,7 @@ in
ensureDatabases = [
"atticd"
"alice"
"mattermost"
];
ensureUsers = [
{
@@ -171,6 +172,7 @@ in
"hydra-server"
"atticd"
"gitea"
"mattermost"
];
};
};

View File

@@ -20,4 +20,5 @@ rec {
primary_plex = "${zfs_primary}/plex";
primary_plex_storage = "${zfs_primary}/plex_storage";
primary_ollama = "${zfs_primary}/ollama";
primary_mattermost = "${zfs_primary}/mattermost";
}