diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix index 1a1402f..90fbb75 100644 --- a/hosts/yuki/services/default.nix +++ b/hosts/yuki/services/default.nix @@ -8,5 +8,6 @@ ./homarr.nix ./dashdot.nix ./miniflux.nix + ./minecraft.nix ]; } diff --git a/hosts/yuki/services/minecraft.nix b/hosts/yuki/services/minecraft.nix new file mode 100644 index 0000000..a72ca60 --- /dev/null +++ b/hosts/yuki/services/minecraft.nix @@ -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" + ]; + }; +}