nix/host/x86_64-linux/home/Terraria.nix

21 lines
485 B
Nix
Raw Normal View History

2024-12-02 21:12:45 +03:00
{
pkgs,
...
}: {
# NOTE: Admin with `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";
};
}