jvmOpts is a string, not a list
This commit is contained in:
parent
b6af716005
commit
aa7a06d6b4
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue