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