Set minecraft server major version so it doesn't update automatically

Adjust minecraft server java options
This commit is contained in:
Evie Litherland-Smith 2024-07-27 07:06:52 +01:00
parent 97e77bdbcb
commit ea34a69ea3

View file

@ -1,9 +1,15 @@
{config, ...}: {
{
config,
pkgs,
...
}: {
services.minecraft-server = {
enable = true;
package = pkgs.minecraftServers.vanilla-1-20;
eula = true;
openFirewall = true;
declarative = true;
jvmOpts = "-Xmx4G -Xms4G";
whitelist = {
"pixelifytica" = "b1848d60-4ddd-4fa4-a328-fb269910b6ae";
"HomeInTheClouds" = "d49f0aee-f217-477b-9516-9d5906f7fc87";