migrate minecraft to container

This commit is contained in:
♥ Minnie ♥ 2024-01-23 09:43:33 +08:00
parent 47bae37e86
commit 4020891021
No known key found for this signature in database
2 changed files with 19 additions and 24 deletions

View file

@ -0,0 +1,19 @@
{ ... }:
{
virtualisation.oci-containers.containers = {
minecraft = {
autoStart = true;
image = "itzg/minecraft-server";
ports = [
"25565:25565"
];
volumes = [
"/srv/containers/minecraft:/data:rw"
];
environment = {
EULA = "true";
};
};
};
}