summaryrefslogtreecommitdiff
path: root/minecraft.nix
diff options
context:
space:
mode:
Diffstat (limited to 'minecraft.nix')
-rw-r--r--minecraft.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/minecraft.nix b/minecraft.nix
index d40d80a..97ebf1d 100644
--- a/minecraft.nix
+++ b/minecraft.nix
@@ -1,5 +1,4 @@
{lib, ...}:{
- # The Mojang server jar is unfreeRedistributable, so it has to be allowed by name.
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"minecraft-server"
];
@@ -7,10 +6,9 @@
services.minecraft-server = {
enable = true;
eula = true;
- openFirewall = true; # Opens the port the server is running on (25565)
+ openFirewall = true;
declarative = true;
whitelist = {
- # This is a mapping of Minecraft usernames to to the players' UUIDs
mr_5aturn = "2b811fad-e419-401e-9185-70ab279219b5";
};
serverProperties = {
@@ -18,7 +16,6 @@
difficulty = "normal";
gamemode = "survival";
max-players = 5;
- motd = "NixOS Minecraft server!";
white-list = true;
};
jvmOpts = "-Xms4096M -Xmx4096M";