Teamspeak: Difference between revisions
→Install server: add note to accept TeamSpeak's unfree license |
fix formatting and mention TS 5 |
||
Line 4: | Line 4: | ||
To install the client just add the package: | To install the client just add the package: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
environment.systemPackages = with pkgs; [ | |||
# pick the version you want: | |||
]; | teamspeak3 | ||
teamspeak5_client | |||
]; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
Line 13: | Line 15: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
services.teamspeak3 = { | |||
enable = true; | |||
openFirewall = true; | |||
}; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
Because teamspeak has an unfree licence, you also need to accept that manually. Place the following in your config in order to do so.<syntaxhighlight lang="nixos"> | Because teamspeak has an unfree licence, you also need to accept that manually. Place the following in your config in order to do so.<syntaxhighlight lang="nixos"> | ||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ | |||
"teamspeak-server" | |||
]; | |||
</syntaxhighlight>Teamspeak has several additional options for configuration. To get elevated rights on the server, it is needed to use the ServerAdmin privilege key from the first log in <code>/var/log/teamspeak3-server</code>. | |||
</syntaxhighlight>Teamspeak has several additional options for configuration. To get elevated rights on the server, it is needed to use the ServerAdmin privilege key from the first log in /var/log/teamspeak3-server. | |||