Ioquake3: Difference between revisions
Add client setup example |
→Dedicated server setup: Note configuration of full game files |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
=== Client setup === | === Client setup === | ||
{{Warning|The ioquake3 module is not yet upstream and will be available in the upcoming NixOS 26.11 release.}} | |||
The game can be installed and configured using the dedicated <code>programs.ioquake3</code> option.<syntaxhighlight lang="nix"> | The game can be installed and configured using the dedicated <code>programs.ioquake3</code> option.<syntaxhighlight lang="nix"> | ||
programs.ioquake3 = { | programs.ioquake3 = { | ||
| Line 16: | Line 17: | ||
}; | }; | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight>ioquake3 will use the demo game files. If you have purchased the game and have a full copy, you can point <code>programs.ioquake3.baseq3</code> to the baseq3 file system path. | ||
=== Dedicated server setup === | === Dedicated server setup === | ||
Following snippet will enable a Quake 3 Arena dedicated server. The map | {{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 ''q3dm7'' will be loaded.<syntaxhighlight lang="nix"> | |||
services.quake3-server = { | services.quake3-server = { | ||
enable = true; | enable = true; | ||
openFirewall = true; | openFirewall = true; | ||
settings = { | |||
rconPassword = "super_secret"; | |||
sv_hostname = "My NixOS Quake 3 Arena Dedicated Server"; | |||
}; | |||
# Configure map rotation | |||
extraConfig = '' | extraConfig = '' | ||
set d1 "map q3dm7 ; set nextmap vstr d2" | |||
set d2 "map q3dm1 ; set nextmap vstr d1" | |||
vstr d1 | |||
''; | ''; | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight>The server will use the demo game files, so various maps and assets won't be available. | ||
If you have purchased the game and have a full copy, you can point <code>services.quake3-server.baseq3</code> to the baseq3 file system path. Setting it, for example, to <code>/var/lib/quake3</code>, the game file is to be expected at <code>/var/lib/quake3/.q3a/baseq3/pak0.pk3</code>. | |||
[[Category: Applications]] | [[Category: Applications]] | ||
[[Category: Gaming]] | [[Category: Gaming]] | ||