feat(selfhost/teamspeak): adding teamspeak to the configuration

This commit is contained in:
Raphael 2025-07-12 23:48:44 +02:00
parent 62d63e139b
commit 20ffcf4ac1
4 changed files with 35 additions and 0 deletions

View file

@ -7,6 +7,9 @@ let
monitor = import ./self_host/monitor.nix {
inherit inputs config pkgs lib;
};
teamspeak = import ./self_host/teamspeak.nix {
inherit inputs config pkgs lib;
};
ollama = import ./self_host/ollama.nix {
inherit inputs config pkgs lib;
};
@ -20,6 +23,7 @@ in
nextcloud
htop
ollama
teamspeak
monitor
];
@ -34,6 +38,11 @@ in
default = false;
description = "Enable the htop";
};
teamspeak = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the teamspeak";
};
ollama = lib.mkOption {
type = lib.types.bool;
default = false;

View file

@ -96,6 +96,8 @@ in
"https://nextcloud.enium.eu"
"https://htop.enium.eu"
"https://monitor.enium.eu"
"https://ts.enium.eu"
"https://monitor.enium.eu"
"https://ollama.enium.eu"
"http://relance-pas-stp.me:4242"
];

View file

@ -0,0 +1,23 @@
{ config, pkgs, lib, ... }:
let
cfg = config.service.selfhost.monitor;
in
{
config = lib.mkIf cfg {
services = {
teamspeak3 = {
enable = true;
};
nginx.virtualHosts."ts.enium.eu" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:9987";
proxyWebsockets = true;
};
};
};
};
}