services.minecraft-server.serverProperties
Minecraft server properties for the server.properties file. Only has
an effect when services.minecraft-server.declarative
is set to true. See
https://minecraft.wiki/w/Server.properties#Java_Edition
for documentation on these values.
- Type
attribute set of (boolean or signed integer or string)- Default
{ }- Example
{ server-port = 43000; difficulty = 3; gamemode = 1; max-players = 5; motd = "NixOS Minecraft server!"; white-list = true; enable-rcon = true; "rcon.password" = "hunter2"; }- Declared
- <nixpkgs/nixos/modules/services/games/minecraft-server.nix>