dotfiles.nix/nixos/viridian/containers/minecraft.nix

20 lines
327 B
Nix
Raw Normal View History

2024-01-23 09:43:33 +08:00
{ ... }:
{
virtualisation.oci-containers.containers = {
minecraft = {
autoStart = true;
image = "itzg/minecraft-server";
ports = [
"25565:25565"
];
volumes = [
"/srv/containers/minecraft:/data:rw"
];
environment = {
EULA = "true";
};
};
};
}