diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-12-22 11:08:57 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-12-22 11:08:57 -0600 |
| commit | 87763bcc7d13e92b96c5743507795fba4444eabe (patch) | |
| tree | 1c394be7bbc358bc8dc3ad119f6ebf150ff0f974 /hosts/ganymede | |
| parent | 4bbaf8fff29ea4f50771025327cb16ed8995aab7 (diff) | |
give up on agenix; set up remote deploys (not currently working)
Diffstat (limited to 'hosts/ganymede')
| -rw-r--r-- | hosts/ganymede/minecraft.nix | 26 | ||||
| -rw-r--r-- | hosts/ganymede/nixos.nix | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/hosts/ganymede/minecraft.nix b/hosts/ganymede/minecraft.nix new file mode 100644 index 0000000..a42e9a0 --- /dev/null +++ b/hosts/ganymede/minecraft.nix @@ -0,0 +1,26 @@ +{config, ...}: { + networking.firewall.allowedUDPPorts = [19132]; + + virtualisation.oci-containers.backend = "podman"; + virtualisation.oci-containers.containers = { + "Minecraft" = { + environment = { + EULA = "TRUE"; + EMIT_SERVER_TELEMETRY = "true"; + + SERVER_NAME = "YServer"; + TZ = config.time.timeZone; + VERSION = "1.21.81.2"; + CONTENT_LOG_FILE_ENABLED = "true"; + + ALLOW_CHEATS = "false"; + DIFFICULTY = "1"; + }; + image = "itzg/minecraft-bedrock-server"; + ports = ["0.0.0.0:19132:19132/udp"]; + volumes = ["/srv/minecraft/:/data"]; + + podman.sdnotify = "conmon"; # avoid nasty errors about healthcheck (idk, the service runs fine) + }; + }; +} diff --git a/hosts/ganymede/nixos.nix b/hosts/ganymede/nixos.nix index af0716d..e4a72e9 100644 --- a/hosts/ganymede/nixos.nix +++ b/hosts/ganymede/nixos.nix @@ -7,4 +7,5 @@ ]; nixpkgs.hostPlatform = "x86_64-linux"; + system.stateVersion = "25.05"; } |
