From 13df6ea3e02bf3ea7043e0e0b85ade46a58e4234 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Mon, 10 Nov 2025 21:19:23 +0100 Subject: [PATCH] Services/Teamspeak: Init with version v6.0.0.0-beta7 --- home/christoph/default.nix | 1 + system/services/teamspeak.nix | 49 +++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 system/services/teamspeak.nix diff --git a/home/christoph/default.nix b/home/christoph/default.nix index 6ce0650c..7e74eaa9 100644 --- a/home/christoph/default.nix +++ b/home/christoph/default.nix @@ -373,6 +373,7 @@ tidal-dl-ng picard handbrake + teamspeak6-client # Office kdePackages.wacomtablet # For xournalpp/krita diff --git a/system/services/teamspeak.nix b/system/services/teamspeak.nix new file mode 100644 index 00000000..5e1f97e4 --- /dev/null +++ b/system/services/teamspeak.nix @@ -0,0 +1,49 @@ +{ + config, + lib, + pkgs, + ... +}: let + teamspeakVersion = "v6.0.0-beta7"; +in { + virtualisation.oci-containers.containers = { + teamspeak = { + image = "teamspeaksystems/teamspeak6-server:${teamspeakVersion}"; + autoStart = true; + + login = { + # Uses DockerHub by default + # registry = ""; + + # DockerHub Credentials + username = "christoph.urlacher@protonmail.com"; + passwordFile = "${config.sops.secrets.docker-password.path}"; + }; + + dependsOn = []; + + ports = [ + # "9987:9987/udp" + # "30033:30033" + ]; + + volumes = [ + "teamspeak_data:/var/tsserver" + ]; + + environment = { + PUID = "1000"; + PGID = "1000"; + TZ = "Europe/Berlin"; + + TSSERVER_LICENSE_ACCEPTED = "accept"; + }; + + extraOptions = [ + # "--privileged" + # "--device=nvidia.com/gpu=all" + "--net=behind-nginx" + ]; + }; + }; +}