aboutsummaryrefslogtreecommitdiff
path: root/modules/retired/xonotic/default.nix
blob: 7ae5442add17b41f75d2b2411e4a852616c95f00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ pkgs, ... }:
{
  services.xonotic = {
    enable = true;
    package = pkgs.xonotic-dedicated;
    openFirewall = true;
    settings = {
      hostname = "tdback's Xonotic Server";
      net_address = "0.0.0.0";
      port = 26000;
      sv_motd = "GLHF! Please report any issues to @tdback on irc.libera.chat";

      # Specify bots and player count.
      maxplayers = 8;
      minplayers = 4;
      minplayers_per_team = 2;

      # Configure mutators.
      g_instagib = 0;
      g_grappling_hook = 1;
      g_jetpack = 0;
      g_vampire = 0;
    };
  };
}