diff options
2 files changed, 31 insertions, 0 deletions
| -rw-r--r-- | machines/marduk/configuration.nix | 1 | ||||
| -rw-r--r-- | machines/marduk/minecraft.nix | 30 |
diff --git a/machines/marduk/configuration.nix b/machines/marduk/configuration.nix index 11fff30..bef2e93 100644 --- a/machines/marduk/configuration.nix +++ b/machines/marduk/configuration.nix @@ -4,6 +4,7 @@ imports = [ ./mail.nix ./aim.nix + ./minecraft.nix ./kamen.nix ]; diff --git a/machines/marduk/minecraft.nix b/machines/marduk/minecraft.nix new file mode 100644 index 0000000..083323d --- /dev/null +++ b/machines/marduk/minecraft.nix @@ -0,0 +1,30 @@ +{ config, pkgs, ... }: +with pkgs.nix-minecraft; { + services.minecraft-servers = { + enable = true; + eula = true; + + openFirewall = true; + servers.test = { + enable = false; + jvmOpts = "-XX:+UseG1GC -Xms2048M -Xmx2048M"; + + package = vanillaServers.vanilla-1_14_2; + + whitelist = { + Syndamia = "43974325-b17b-4bfb-b5ab-4854c38a9d0a"; + }; + operators = { + Syndamia = "43974325-b17b-4bfb-b5ab-4854c38a9d0a"; + }; + + serverProperties = { + difficulty = 3; + gamemode = 0; + max-players = 5; + motd = "Test server!"; + white-list = true; + }; + }; + }; +} |
