diff options
| author | Max Audron <audron@cocaine.farm> | 2025-12-26 17:21:05 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-12-26 17:21:05 +0100 |
| commit | 37fa40936a846db36be0ad2071cbce4766900e55 (patch) | |
| tree | a05056aa71737434f57416bf006704563d3cb7e7 /modules/teamspeak/default.nix | |
| parent | added ts6 test server (container) with podman (diff) | |
add teamspeak6 server
Diffstat (limited to 'modules/teamspeak/default.nix')
| -rw-r--r-- | modules/teamspeak/default.nix | 48 |
1 files changed, 31 insertions, 17 deletions
diff --git a/modules/teamspeak/default.nix b/modules/teamspeak/default.nix index 310eb13..f3e94f7 100644 --- a/modules/teamspeak/default.nix +++ b/modules/teamspeak/default.nix @@ -1,6 +1,8 @@ { config, lib, pkgs, ... }: { + imports = [ ./teamspeak6-server.nix ]; + services.teamspeak3 = let ip = "178.63.224.12"; in @@ -17,22 +19,34 @@ Restart = lib.mkForce "always"; }; }; - - virtualisation.oci-containers.containers = { - teamspeak6-server = { - image = "teamspeaksystems/teamspeak6-server:latest"; - autoStart = true; - ports = [ - "178.63.224.13:9987:9987/udp" # Default voice port - "178.63.224.13:30033:30033/tcp" # File transfer port - ]; - environment = { - TSSERVER_LICENSE_ACCEPTED="accept"; - TSSERVER_DEFAULT_PORT="9987"; - TSSERVER_VOICE_IP="0.0.0.0"; - TSSERVER_FILE_TRANSFER_PORT="30033"; - TSSERVER_FILE_TRANSFER_IP="0.0.0.0"; - }; + + services.teamspeak6 = + let + ip = "178.63.224.13"; in + { + enable = true; + package = pkgs.callPackage ../../pkgs/teamspeak6-server {}; + openFirewall = true; + voiceIP = ip; + queryIP = ip; + fileTransferIP = ip; }; - }; + + # virtualisation.oci-containers.containers = { + # teamspeak6-server = { + # image = "teamspeaksystems/teamspeak6-server:latest"; + # autoStart = true; + # ports = [ + # "178.63.224.13:9987:9987/udp" # Default voice port + # "178.63.224.13:30033:30033/tcp" # File transfer port + # ]; + # environment = { + # TSSERVER_LICENSE_ACCEPTED="accept"; + # TSSERVER_DEFAULT_PORT="9987"; + # TSSERVER_VOICE_IP="0.0.0.0"; + # TSSERVER_FILE_TRANSFER_PORT="30033"; + # TSSERVER_FILE_TRANSFER_IP="0.0.0.0"; + # }; + # }; + # }; } |
