summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-06-19 16:59:21 +0200
committersils <sils@sils.li>2023-06-19 16:59:21 +0200
commite002d4ee0c2697801fa67231e43584771d0a91b5 (patch)
treeb38573fde07a1b2cf0eef5283da986ece7e1c3b3 /system
parentFix(system/services): Allow minecraft-server, which is sadly unfree (diff)
downloadnixos-server-e002d4ee0c2697801fa67231e43584771d0a91b5.tar.gz
nixos-server-e002d4ee0c2697801fa67231e43584771d0a91b5.zip
Fix(system/services/minecraft): Finetuning
Diffstat (limited to '')
-rw-r--r--system/services/minecraft/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/services/minecraft/default.nix b/system/services/minecraft/default.nix
index 64f2ee7..c9f7b64 100644
--- a/system/services/minecraft/default.nix
+++ b/system/services/minecraft/default.nix
@@ -9,6 +9,7 @@
     eula = true;
     dataDir = "/srv/minecraft";
     openFirewall = true;
+    jvmOpts = "-Xmx8192M -Xms8192M";
     whitelist = {
       ShadyCraft = "7995eea5-b648-41c4-9b0f-7fc082565952";
       Nightingale768 = "1125d077-6709-44b2-9be0-587aec772e7a";
@@ -20,6 +21,8 @@
       white-list = true;
       difficulty = 3;
       gamemode = "survival";
+      enforce-whitelist = true;
+      simulation-distance = 15;
     };
   };
 }