Comment out Hytale server in game-servers.nix

https://claude.ai/code/session_01Ays1x4CUUJE1jPLkeNMojV
This commit is contained in:
Claude 2026-04-11 14:48:23 +00:00
parent a35281419f
commit b2e6844e9e
No known key found for this signature in database

View file

@ -35,35 +35,35 @@
};
## <----- HYTALE ----> ##
systemd.services.hytale-server = {
description = "Hytale Dedicated Server";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
path = with pkgs; [ bash jdk unzip gawk gnugrep coreutils screen ]; # Added screen
environment = {
HYTALE_MEMORY = "8G";
};
serviceConfig = {
Type = "forking"; # Changed from "simple"
User = "fred";
Group = "users";
WorkingDirectory = "/home/fred/docker/hytale-server/Server";
ExecStart = "${pkgs.screen}/bin/screen -dmS hytale /home/fred/docker/hytale-server/start-hytale.sh";
ExecStop = "${pkgs.screen}/bin/screen -S hytale -X stuff 'stop^M'";
RemainAfterExit = "yes";
Restart = "on-failure";
RestartSec = "10s";
TimeoutStopSec = "30s";
# Security hardening
NoNewPrivileges = true;
PrivateTmp = true;
};
};
networking.firewall.allowedUDPPorts = [ 5520 9876 9877 ];
# systemd.services.hytale-server = {
# description = "Hytale Dedicated Server";
# wantedBy = [ "multi-user.target" ];
# after = [ "network.target" ];
#
# path = with pkgs; [ bash jdk unzip gawk gnugrep coreutils screen ];
#
# environment = {
# HYTALE_MEMORY = "8G";
# };
#
# serviceConfig = {
# Type = "forking";
# User = "fred";
# Group = "users";
# WorkingDirectory = "/home/fred/docker/hytale-server/Server";
# ExecStart = "${pkgs.screen}/bin/screen -dmS hytale /home/fred/docker/hytale-server/start-hytale.sh";
# ExecStop = "${pkgs.screen}/bin/screen -S hytale -X stuff 'stop^M'";
# RemainAfterExit = "yes";
# Restart = "on-failure";
# RestartSec = "10s";
# TimeoutStopSec = "30s";
#
# # Security hardening
# NoNewPrivileges = true;
# PrivateTmp = true;
# };
# };
networking.firewall.allowedUDPPorts = [ 9876 9877 ];
};
}