feature/mattermost #212

Merged
ahuston-0 merged 3 commits from feature/mattermost into main 2026-04-13 23:02:34 -04:00
6 changed files with 36 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 ./haproxy
./hardware-changes.nix ./hardware-changes.nix
./hydra.nix ./hydra.nix
./mattermost.nix
./minio.nix ./minio.nix
./networking.nix ./networking.nix
./nextcloud.nix ./nextcloud.nix

View File

@@ -48,6 +48,9 @@
# torr # torr
29432 29432
# mattermost
8065
]; ];
allowedUDPPorts = [ allowedUDPPorts = [

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 = [ ensureDatabases = [
"atticd" "atticd"
"alice" "alice"
"mattermost"
]; ];
ensureUsers = [ ensureUsers = [
{ {
@@ -171,6 +172,7 @@ in
"hydra-server" "hydra-server"
"atticd" "atticd"
"gitea" "gitea"
"mattermost"
]; ];
}; };
}; };

View File

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