Package is specified in worldOpts
This commit is contained in:
parent
c4ec7d8e04
commit
977ae77a76
@ -260,7 +260,7 @@ in {
|
|||||||
++ (optionals (worldOpts.allocated-memory >= 12) highMemFlags);
|
++ (optionals (worldOpts.allocated-memory >= 12) highMemFlags);
|
||||||
flagStr = concatStringsSep " " flags;
|
flagStr = concatStringsSep " " flags;
|
||||||
in pkgs.writeShellScript "mc-start-${sanitizedName}.sh"
|
in pkgs.writeShellScript "mc-start-${sanitizedName}.sh"
|
||||||
"${cfg.package}/bin/minecraft-server ${flagStr}";
|
"${worldOpts.package}/bin/minecraft-server ${flagStr}";
|
||||||
|
|
||||||
in nameValuePair serverName {
|
in nameValuePair serverName {
|
||||||
enable = worldOpts.enable;
|
enable = worldOpts.enable;
|
||||||
|
Loading…
Reference in New Issue
Block a user