setup new host + migrate containers to it
This commit is contained in:
parent
804423319f
commit
0949fbc9c7
12 changed files with 8 additions and 15 deletions
16
nixos/viridian/containers/minecraft/default.nix
Normal file
16
nixos/viridian/containers/minecraft/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue