mio-ops/profiles/minecraftServer.nix
2021-05-03 22:01:09 +10:00

27 lines
481 B
Nix

# Minecraft server configuration for NixOS / NixOps
{ config, pkgs, ... }:
{
nixpkgs = {
config = {
allowUnfree = true;
};
};
services.minecraft-server = {
enable = true; # Enable the Minecraft server.
eula = true; # Answer Miecraft's EULA
openFirewall = true;
serverProperties = {
motd = "mcwhirter.io";
white-list = true;
};
whitelist = {
TongMaster = "765bbc7c-6a06-4f10-8bde-f15a8a779007";
};
};
}