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

18 lines
353 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";
};
2023-06-12 21:47:20 +08:00
extraOptions = [ "--pull=newer" ];
2023-05-27 00:25:55 +08:00
};
}