aboutsummaryrefslogtreecommitdiff
path: root/modules/teamspeak/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/teamspeak/default.nix')
-rw-r--r--modules/teamspeak/default.nix48
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";
+ # };
+ # };
+ # };
}