dotfiles.nix/nixos/viridian/containers/minecraft/default.nix
2023-10-30 23:07:45 +00:00

19 lines
303 B
Nix

{ ... }:
{
# Minecraft
virtualisation.oci-containers.containers."minecraft" = {
image = "itzg/minecraft-server";
ports = [
"25565:25565"
];
volumes = [
"/srv/containers/minecraft:/data"
];
environment = {
EULA = "TRUE";
};
autoStart = true;
};
}