lol

nixos/minecraft-server: optimize world generation inside test

Due to how complex minecraft world generation has gotten in recent
years, it now can take several minutes to complete the first generation
of a world seed, even on relatively new and powerful hardware.

We are testing if a minecraft server can run inside of a nix enviroment,
and not so much about stress testing the CI.

Test running before this change:

> (finished: waiting for TCP port 43000, in 118.49 seconds)

Test running with this change:

> (finished: waiting for TCP port 43000, in 27.88 seconds)

Choice of using `level-type` and `generate-structures` was made as they
support almost every version of minecraft. These two also make it
extremely clear what it does, compared to the more complex
`generator-settings` and all its toggles.

authored by

Sofi and committed by winter.bsky.social 07c76c98 d7cef0d4

+2
+2
nixos/tests/minecraft-server.nix
··· 18 18 serverProperties = { 19 19 enable-rcon = true; 20 20 level-seed = seed; 21 + level-type = "flat"; 22 + generate-structures = false; 21 23 online-mode = false; 22 24 "rcon.password" = rcon-pass; 23 25 "rcon.port" = rcon-port;