dotfiles.nix/nixos/lavender/containers/minecraft/default.nix

17 lines
314 B
Nix
Raw Normal View History

2023-05-27 00:25:55 +08:00
{ ... }:
{
# Minecraft
virtualisation.oci-containers.containers."minecraft" = {
autoStart = true;
image = "marctv/minecraft-papermc-server:latest";
volumes = [
"/srv/containers/minecraft:/data"
];
ports = [ "25565:25565" ];
environment = {
MEMORYSIZE = "1G";
};
};
}