dotfiles.nix/nixos/viridian/services/minecraft-server/default.nix

23 lines
513 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!";
level-seed = "-3675652194237789176";
};
eula = true;
};
}