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
1 changed files with 30 additions and 28 deletions

View File

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