2024-11-30 13:35:20 -03:00
|
|
|
{ pkgs, ... }:
|
2024-11-27 23:58:53 -03:00
|
|
|
|
|
|
|
{
|
|
|
|
systemd.user.services.terraria = {
|
|
|
|
Install.WantedBy = [ "default.target" ];
|
|
|
|
|
2024-11-30 13:35:20 -03:00
|
|
|
Unit.Description = "Terraria TMUX Server";
|
2024-11-27 23:58:53 -03:00
|
|
|
|
|
|
|
Service = {
|
2024-12-08 19:54:27 -03:00
|
|
|
ExecStart = "${pkgs.tmux}/bin/tmux -L terraria new -s Terraria -d /etc/profiles/per-user/wizardlink/bin/fhs -c 'dotnet ./tModLoader.dll -server -config serverconfig.txt'";
|
2024-11-30 13:35:20 -03:00
|
|
|
ExecStop = "${pkgs.tmux}/bin/tmux kill-session -t Terraria";
|
2024-11-27 23:58:53 -03:00
|
|
|
Restart = "on-failure";
|
|
|
|
Type = "forking";
|
2024-11-30 13:35:20 -03:00
|
|
|
WorkingDirectory = "/mnt/ssd/SteamLibrary/steamapps/common/tModLoader";
|
2024-11-27 23:58:53 -03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|