You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -503,3 +503,53 @@ files."white-list.txt" = {
503
503
```
504
504
505
505
generates a legacy `white-list.txt` that is needed for older minecraft versions (< 1.7.6)
506
+
507
+
#### `servers.<name>.lazymc`
508
+
509
+
Integrates [lazymc](https://github.com/timvisee/lazymc), putting server to sleep when idle and waking it upon player connection.
510
+
When enabled the server's public address is controlled by lazymc, by default 25565. So a new internal `serverProperties.server-port` has to be chosen.
511
+
512
+
***`enable`**: `boolean`, default `false`
513
+
514
+
***`package`**: `package`, default `pkgs.lazymc`
515
+
The `lazymc` package to use. You might have to change lazymc version according to your minecraft server version, for example lazymc v0.2.10 supports Minecraft Java Edition 1.7.2+, while for Minecraft Java Edition 1.20.3+ you'll need lazymc v0.2.11
516
+
517
+
***`config`**: `attribute set`, default `{}`
518
+
Allows defining and overriding settings in the `lazymc.toml`, for all options see [here](https://github.com/timvisee/lazymc/blob/master/res/lazymc.toml). The auto generated config options are:
519
+
*`server.command`: Automatically set to use the server `package` and `jvmOpts`;
520
+
*`server.directory`;
521
+
*`server.address`: Automatically set to `127.0.0.1:<serverProperties.server-port or 25565>";`
522
+
523
+
**Firewall**
524
+
* When `lazymc.enable = true`, the `openFirewall` option for this server instance will open the port specified in `lazymc.config.public.address` (or 25565), not the internal Minecraft `serverProperties.server-port`.
message="Multiple servers are set to use the same port. Change one to use a different port.";
655
+
message="Multiple servers are set to use the same public port (either through lazymc public.address or server.properties server-port). Change one to use a different port.";
0 commit comments