Update game-servers.nix
This commit is contained in:
parent
7183ccb02c
commit
526648b952
1 changed files with 1 additions and 23 deletions
|
|
@ -2,28 +2,6 @@
|
||||||
{
|
{
|
||||||
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
||||||
## <----- HYTALE ----> ##
|
## <----- HYTALE ----> ##
|
||||||
virtualisation.oci-containers = {
|
#
|
||||||
backend = "docker";
|
|
||||||
containers."hytale" = {
|
|
||||||
image = "indifferentbroccoli/hytale-server-docker:latest";
|
|
||||||
ports = [ "5520:5520/udp" ];
|
|
||||||
environment = {
|
|
||||||
SERVER_NAME = "Nordhammer.it Hytale Server";
|
|
||||||
MAX_PLAYERS = "50";
|
|
||||||
ENABLE_BACKUP = "true";
|
|
||||||
BACKUP_FREQUENCY = "30";
|
|
||||||
PASSWORD = "DukeSmells";
|
|
||||||
};
|
|
||||||
volumes = [
|
|
||||||
"/home/fred/docker/hytale-server/hytale-data:/home/hytale/server-files"
|
|
||||||
];
|
|
||||||
extraOptions = [
|
|
||||||
"--stop-timeout=30"
|
|
||||||
"--memory=16g" # Docker memory limit
|
|
||||||
"--memory-swap=16g" # Prevent swap usage
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
networking.firewall.allowedUDPPorts = [ 5520 ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue