Ioquake3: Difference between revisions
| Line 19: | Line 19: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Dedicated server setup === | === Dedicated server setup === | ||
{{Warning|Parts of this module are not yet upstream and will be available in the upcoming NixOS 26.11 release.}} | |||
Following snippet will enable a Quake 3 Arena dedicated server. The map <code>q3tourney3</code> (Hell's Gate) will be loaded.<syntaxhighlight lang="nix"> | Following snippet will enable a Quake 3 Arena dedicated server. The map <code>q3tourney3</code> (Hell's Gate) will be loaded.<syntaxhighlight lang="nix"> | ||
services.quake3-server = { | services.quake3-server = { | ||
| Line 24: | Line 25: | ||
openFirewall = true; | openFirewall = true; | ||
baseq3 = "/var/lib/quake3"; | baseq3 = "/var/lib/quake3"; | ||
settings = { | |||
rconPassword = "super_secret"; | |||
sv_hostname = "My NixOS Quake 3 Arena Dedicated Server"; | |||
}; | |||
# Configure map rotation | |||
extraConfig = '' | extraConfig = '' | ||
set d1 "map q3tourney3 ; set nextmap vstr d2" | |||
set d2 "map q3dm17 ; set nextmap vstr d3" | |||
map | set d3 "map q3tourney5 ; set nextmap vstr d1" | ||
vstr d1 | |||
''; | ''; | ||
}; | }; | ||