Move minecraft srver into module

This commit is contained in:
jopejoe1 2023-07-26 21:00:43 +02:00
parent 91e34642d0
commit 58d0a8730c
3 changed files with 20 additions and 15 deletions

View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
services.minecraft-server = {
enable = true;
eula = true;
openFirewall = true;
declarative = true;
serverProperties = {
difficulty = 3;
enable-rcon = true;
"rcon.password" = "test";
motd = "\\u00A7cWake up to reality! Nothing ever goes as planned in this accursed world.";
spawn-protection = 0;
level-type = "minecraft:amplified";
level-name = "amplified_world";
};
};
}