jvmOpts is a string, not a list

This commit is contained in:
niten 2022-09-05 17:36:17 -07:00
parent b6af716005
commit aa7a06d6b4

View File

@ -69,7 +69,8 @@ in {
gamemode = cfg.game-mode;
allow-cheats = true;
};
jvmOpts = [
jvmOpts = let
opts = [
"-Xms${toString cfg.allocated-memory}G"
"-Xmx${toString cfg.allocated-memory}G"
"-XX:+UseG1GC"
@ -97,6 +98,7 @@ in {
"-XX:G1ReservePercent=15"
"-XX:InitiatingHeapOccupancyPercent=20"
]);
in concatStringsSep " " opts;
};
};
}