Update game-servers.nix
This commit is contained in:
parent
f6dd495ad3
commit
83666e7e7d
1 changed files with 23 additions and 22 deletions
|
|
@ -1,28 +1,29 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
|
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
||||||
## <----- HYTALE ----> ##
|
## <----- HYTALE ----> ##
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
backend = "docker";
|
backend = "docker";
|
||||||
containers."hytale-server" = {
|
containers."hytale-server" = {
|
||||||
image = "ghcr.io/terkea/hytale-server:latest";
|
image = "ghcr.io/terkea/hytale-server:latest";
|
||||||
ports = [ "5520:5520/udp" ];
|
ports = [ "5520:5520/udp" ];
|
||||||
environment = {
|
environment = {
|
||||||
SERVER_NAME = "Nordhammer.it Hytale Server";
|
SERVER_NAME = "Nordhammer.it Hytale Server";
|
||||||
MAX_PLAYERS = "50";
|
MAX_PLAYERS = "50";
|
||||||
MEMORY = "4G";
|
MEMORY = "4G";
|
||||||
ENABLE_BACKUP = "true";
|
ENABLE_BACKUP = "true";
|
||||||
BACKUP_FREQUENCY = "30";
|
BACKUP_FREQUENCY = "30";
|
||||||
PASSWORD = "DukeSmells";
|
PASSWORD = "DukeSmells";
|
||||||
|
};
|
||||||
|
volumes = [
|
||||||
|
"/home/fred/docker/hytale-server/hytale-data:/data"
|
||||||
|
];
|
||||||
|
extraOptions = [
|
||||||
|
"--interactive=false"
|
||||||
|
"--tty=false"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
volumes = [
|
|
||||||
"/home/fred/docker/hytale-server/hytale-data:/data"
|
|
||||||
];
|
|
||||||
extraOptions = [
|
|
||||||
"--interactive=false"
|
|
||||||
"--tty=false"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
networking.firewall.allowedUDPPorts = [ 5520 ];
|
||||||
};
|
};
|
||||||
networking.firewall.allowedUDPPorts = [ 5520 ];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue