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

23 lines
513 B
Nix
Raw Normal View History

2023-12-01 05:31:40 +08:00
{ 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;
};
}