diff options
| author | triethyl <triethylammonium@pm.me> | 2025-10-27 14:24:06 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-10-27 14:24:06 -0400 |
| commit | 35cfd79980890310a5d4100932bd298742a5b170 (patch) | |
| tree | c37b7d86d23c310d63f8e15b15363d31eac39807 /nixos | |
| parent | 5f6f4fd7fa201154e0ee5c7cadc4bbe40388f0ed (diff) | |
homelab: added matrix module
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/modules/homelab/communications/matrix.nix | 5 | ||||
| -rw-r--r-- | nixos/modules/homelab/communications/mattermost.nix | 11 | ||||
| -rw-r--r-- | nixos/modules/homelab/default.nix | 1 | ||||
| -rw-r--r-- | nixos/systems/prodesk-server/system.nix | 3 |
4 files changed, 17 insertions, 3 deletions
diff --git a/nixos/modules/homelab/communications/matrix.nix b/nixos/modules/homelab/communications/matrix.nix new file mode 100644 index 0000000..9e5a9b7 --- /dev/null +++ b/nixos/modules/homelab/communications/matrix.nix @@ -0,0 +1,5 @@ +{config, pkgs, lib, ...}: let + cfg = config.homelab.communications.matrix; +in { + +} diff --git a/nixos/modules/homelab/communications/mattermost.nix b/nixos/modules/homelab/communications/mattermost.nix index f15002f..db3f759 100644 --- a/nixos/modules/homelab/communications/mattermost.nix +++ b/nixos/modules/homelab/communications/mattermost.nix @@ -20,12 +20,17 @@ in { config = lib.mkIf cfg.enable { services.mattermost = { enable = true; - host = full-domain; - siteName = "CompSciClub"; + siteName = "CS Club"; + siteUrl = "https://${full-domain}"; dataDir = "/srv/mattermost"; + settings = { + TeamSettings = { + EnableOpenServer = true; + }; + }; }; services.caddy.virtualHosts.${full-domain}.extraConfig = '' - reverse_proxy http://127.0.0.1:8065 {} + reverse_proxy http://127.0.0.1:8065 ''; }; } diff --git a/nixos/modules/homelab/default.nix b/nixos/modules/homelab/default.nix index ab7fa87..72bbb0e 100644 --- a/nixos/modules/homelab/default.nix +++ b/nixos/modules/homelab/default.nix @@ -5,6 +5,7 @@ in { ./core ./cloud ./dev + ./communications ]; options.homelab = { enable = lib.mkEnableOption "homelab"; diff --git a/nixos/systems/prodesk-server/system.nix b/nixos/systems/prodesk-server/system.nix index 5c336c0..7c5ef30 100644 --- a/nixos/systems/prodesk-server/system.nix +++ b/nixos/systems/prodesk-server/system.nix @@ -80,5 +80,8 @@ dev = { git.enable = true; }; + communications = { + mattermost.enable = true; + }; }; } |
