dotfiles.nix/nixos/viridian/services/minecraft-server/default.nix
2023-12-19 09:19:16 +08:00

22 lines
470 B
Nix

{ pkgs, ... }:
{
# Sandbox game developed by Mojang Studios
services.minecraft-server = {
enable = true;
package = pkgs.unstable.minecraft-server;
openFirewall = true;
dataDir = "/var/lib/minecraft";
declarative = true;
serverProperties = {
gamemode = "survival";
level-name = "kanto.dev";
difficulty = "easy";
server-port = 25565;
motd = "Welcome to our little private place!";
};
eula = true;
};
}