This commit is contained in:
Lucy 2025-09-19 17:20:24 +02:00
parent 063419273d
commit 17b94f3e8a
5 changed files with 51 additions and 33 deletions

View file

@ -0,0 +1,42 @@
{ lib, ...}:
let
{inherit lib;} mkEnableOption mkOption;
in {
options = {
services.openarena = {
enable = mkEnableOption "OpenArena game servers";
instances = mkOption {
type = types.listOf (types.submodule {
options = {
name = mkOption {
type = types.str;
description = "Unique name for this server instance";
};
port = mkOption {
type = types.int;
default = 27960;
description = "UDP port for the server";
};
gameMode = mkOption {
type = types.str;
default = "oa_dm1";
description = "Default map or game mode to start";
};
extraFlags = mkOption {
type = types.listOf types.str;
default = [ ];
description = "Extra flags to pass to oa_ded";
};
openPorts = mkOption {
type = types.bool;
default = false;
description = "Whether to open firewall ports for this instance";
};
};
}));
};
};
};
}