From 96176af1bf104186cb3ed807a1ba42a70982de8f Mon Sep 17 00:00:00 2001 From: ediblerope Date: Tue, 20 Jan 2026 19:53:42 +0000 Subject: [PATCH] Update game-servers.nix --- services/game-servers.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/services/game-servers.nix b/services/game-servers.nix index 8b13789..6edb021 100644 --- a/services/game-servers.nix +++ b/services/game-servers.nix @@ -1 +1,28 @@ +{ config, pkgs, lib, ... }: +{ +## <----- HYTALE ----> ## + virtualisation.oci-containers = { + backend = "docker"; + containers."hytale-server" = { + image = "ghcr.io/terkea/hytale-server:latest"; + ports = [ "5520:5520/udp" ]; + environment = { + SERVER_NAME = "Nordhammer.it Hytale Server"; + MAX_PLAYERS = "50"; + MEMORY = "4G"; + ENABLE_BACKUP = "true"; + BACKUP_FREQUENCY = "30"; + PASSWORD = "DukeSmells"; + }; + volumes = [ + "/home/fred/docker/hytale-server/hytale-data:/data" + ]; + extraOptions = [ + "--interactive=false" + "--tty=false" + ]; + }; + }; + networking.firewall.allowedUDPPorts = [ 5520 ]; +}