about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-08-15 22:37:31 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-08-15 22:39:14 +0200
commit3e82dd621d56995dda4b74662e3a5150aafdb0f8 (patch)
tree28f561c7d09ebfefedc4f5f60944fb8f83f3ecc0 /modules/services
parent19f4a0015a12a2ef587fc4381ee8b7e0f3a87f0b (diff)
modules/starbound: Add option "serverFidelity"
This one was a bit difficult to find on the web so I had to ask in IRC
(person and channel not to be disclosed here) for what this option does
exactly.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/starbound.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/services/starbound.nix b/modules/services/starbound.nix
index cc2f9f0a..91053758 100644
--- a/modules/services/starbound.nix
+++ b/modules/services/starbound.nix
@@ -35,7 +35,7 @@ let
     }) cfg.users;
 
     inherit (cfg) checkAssetsDigest clearPlayerFiles clearUniverseFiles;
-    inherit (cfg) maxPlayers safeScripts serverName;
+    inherit (cfg) maxPlayers safeScripts serverName serverFidelity;
 
     gameServerBind = cfg.bind;
     gameServerPort = cfg.port;
@@ -264,6 +264,19 @@ in {
       '';
     };
 
+    serverFidelity = mkOption {
+      type = types.enum [ "automatic" "minimum" "low" "medium" "high" ];
+      default = "automatic";
+      example = "high";
+      description = ''
+        The fidelity profile to use for this server as defined in
+        <path>worldserver.config</path> inside the packed assets.
+
+        If this is set to <literal>automatic</literal> the server will
+        automatically switch between these profiles.
+      '';
+    };
+
     maxPlayers = mkOption {
       type = types.int;
       default = 8;