about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
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;