From 47cf5f068c9ac377a406f1bb04825efb4109c511 Mon Sep 17 00:00:00 2001 From: notohh Date: Fri, 30 Jun 2023 16:59:27 -0400 Subject: [PATCH] yuki: init minecraft --- hosts/yuki/services/default.nix | 1 + hosts/yuki/services/minecraft.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 hosts/yuki/services/minecraft.nix 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" + ]; + }; +}