Terraria: Add a Calamity server.
This commit is contained in:
parent
9b46d7954b
commit
b85fbcc075
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
|
{
|
||||||
services.tandoor-recipes = {
|
services.tandoor-recipes = {
|
||||||
enable = true;
|
enable = true;
|
||||||
address = "[::1]";
|
address = "[::1]";
|
||||||
|
|
|
@ -1,18 +1,41 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
# NOTE: Admin with `tmux -S /var/lib/terraria/terraria.sock attach-session -t 0`
|
# Vanilla.
|
||||||
environment.systemPackages = with pkgs; [ tmux ];
|
# NOTE: tmux -S /var/lib/terraria/terraria.sock attach-session -t 0
|
||||||
|
# environment.systemPackages = with pkgs; [ tmux ];
|
||||||
|
#
|
||||||
|
# services.terraria = {
|
||||||
|
# enable = true;
|
||||||
|
# autoCreatedWorldSize = "large";
|
||||||
|
# messageOfTheDay = "<3";
|
||||||
|
# maxPlayers = 4;
|
||||||
|
# noUPnP = false;
|
||||||
|
# openFirewall = false;
|
||||||
|
# password = "mishadima143";
|
||||||
|
# port = 22777;
|
||||||
|
# secure = false;
|
||||||
|
# worldPath = "/var/lib/terraria/.local/share/Terraria/Worlds/World.wld";
|
||||||
|
# };
|
||||||
|
|
||||||
services.terraria = {
|
# Modded.
|
||||||
enable = true;
|
# NOTE: docker exec tmodloader inject "say Hello World!"
|
||||||
autoCreatedWorldSize = "large";
|
virtualisation.oci-containers.containers.terraria = {
|
||||||
messageOfTheDay = "<3";
|
image = "jacobsmile/tmodloader1.4:latest";
|
||||||
maxPlayers = 4;
|
volumes = [ "/storage/hot/data/terraria_calamity:/data" ];
|
||||||
noUPnP = false;
|
ports = [ "0.0.0.0:22777:7777" ];
|
||||||
openFirewall = false;
|
environment = {
|
||||||
password = "mishadima143";
|
TMOD_SHUTDOWN_MESSAGE = "Goodbye! <3";
|
||||||
port = 22777;
|
TMOD_AUTOSAVE_INTERVAL = "5";
|
||||||
secure = false;
|
# TMOD_AUTODOWNLOAD = "3015412343,2824688072,2824688266,2785100219,3222493606"; # NOTE: Comment after loading once.
|
||||||
worldPath = "/var/lib/terraria/.local/share/Terraria/Worlds/World.wld";
|
TMOD_ENABLEDMODS = "3015412343,2824688072,2824688266,2785100219,3222493606";
|
||||||
|
TMOD_MOTD = "<3";
|
||||||
|
TMOD_PASS = "mishadima143";
|
||||||
|
TMOD_MAXPLAYERS = "2";
|
||||||
|
TMOD_WORLDNAME = "CWorld";
|
||||||
|
TMOD_WORLDSIZE = "3";
|
||||||
|
# TMOD_WORLDSEED = "";
|
||||||
|
TMOD_DIFFICULTY = "2";
|
||||||
|
TMOD_SECURE = "0";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,4 +21,3 @@
|
||||||
ssl_dhparam /etc/letsencrypt/conf/ssl-dhparams.pem;
|
ssl_dhparam /etc/letsencrypt/conf/ssl-dhparams.pem;
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ function networkwidget() {
|
||||||
icon=""
|
icon=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v nmcli &> /dev/null; then
|
if ! command -v nmcli &>/dev/null; then
|
||||||
class="disabled"
|
class="disabled"
|
||||||
icon=""
|
icon=""
|
||||||
elif [[ ${internet} != "full" ]]; then
|
elif [[ ${internet} != "full" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue