Update FredOS-Mediaserver.nix
This commit is contained in:
parent
369d56cf42
commit
b3c7aab1d7
1 changed files with 16 additions and 0 deletions
|
|
@ -81,6 +81,22 @@
|
|||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.backend = "docker";
|
||||
virtualisation.oci-containers.containers."hytale-server" = {
|
||||
image = "ghcr.io/terkea/hytale-server:latest";
|
||||
ports = [ "5520:5520/udp" ];
|
||||
environment = {
|
||||
SERVER_NAME = "My Hytale Server";
|
||||
MAX_PLAYERS = "50";
|
||||
MEMORY = "4G";
|
||||
};
|
||||
volumes = [
|
||||
"/home/fred/docker/hytale-server/hytale-data:/data"
|
||||
];
|
||||
# tty and stdin_open equivalent in NixOS OCI module
|
||||
extraOptions = [ "--tty" "--interactive" ];
|
||||
};
|
||||
|
||||
# Open firewall for web traffic
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 81 22 ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue