Update game-servers.nix
This commit is contained in:
parent
0f8aae5942
commit
96176af1bf
1 changed files with 27 additions and 0 deletions
|
|
@ -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 ];
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue