feature/mattermost #212
10
.vscode/mcp.json
vendored
Normal file
10
.vscode/mcp.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"servers": {
|
||||||
|
"nixos": {
|
||||||
|
"command": "uvx",
|
||||||
|
"args": [
|
||||||
|
"mcp-nixos"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -48,6 +48,9 @@
|
|||||||
|
|
||||||
# torr
|
# torr
|
||||||
29432
|
29432
|
||||||
|
|
||||||
|
# mattermost
|
||||||
|
8065
|
||||||
];
|
];
|
||||||
|
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
|
|||||||
19
systems/palatine-hill/mattermost.nix
Normal file
19
systems/palatine-hill/mattermost.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user