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

@ -24,6 +24,7 @@
htop = true; htop = true;
ollama = false; ollama = false;
monitor = true; monitor = true;
teamspeak = true;
nextcloud = true; nextcloud = true;
}; };
forty_two.irc = true; forty_two.irc = true;

View file

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

View file

@ -96,6 +96,8 @@ in
"https://nextcloud.enium.eu" "https://nextcloud.enium.eu"
"https://htop.enium.eu" "https://htop.enium.eu"
"https://monitor.enium.eu" "https://monitor.enium.eu"
"https://ts.enium.eu"
"https://monitor.enium.eu"
"https://ollama.enium.eu" "https://ollama.enium.eu"
"http://relance-pas-stp.me:4242" "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;
};
};
};
};
}