yuki: init minecraft
This commit is contained in:
parent
8307144ed6
commit
47cf5f068c
2 changed files with 14 additions and 0 deletions
|
@ -8,5 +8,6 @@
|
||||||
./homarr.nix
|
./homarr.nix
|
||||||
./dashdot.nix
|
./dashdot.nix
|
||||||
./miniflux.nix
|
./miniflux.nix
|
||||||
|
./minecraft.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
13
hosts/yuki/services/minecraft.nix
Normal file
13
hosts/yuki/services/minecraft.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{...}: {
|
||||||
|
networking.firewall.allowedTCPPorts = [25565];
|
||||||
|
virtualisation.oci-containers.containers.minecraft = {
|
||||||
|
image = "marctv/minecraft-papermc-server:latest";
|
||||||
|
ports = ["25565:25565"];
|
||||||
|
environment = {
|
||||||
|
MEMORYSIZE = "6G";
|
||||||
|
};
|
||||||
|
volumes = [
|
||||||
|
"/home/notoh/docker/mcserver:/data:rw"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue