linuxware/specific/desktop/services/terraria.nix

18 lines
556 B
Nix
Raw Normal View History

{ pkgs, ... }:
2024-11-27 23:58:53 -03:00
{
systemd.user.services.terraria = {
Install.WantedBy = [ "default.target" ];
Unit.Description = "Terraria TMUX Server";
2024-11-27 23:58:53 -03:00
Service = {
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'";
ExecStop = "${pkgs.tmux}/bin/tmux kill-session -t Terraria";
2024-11-27 23:58:53 -03:00
Restart = "on-failure";
Type = "forking";
WorkingDirectory = "/mnt/ssd/SteamLibrary/steamapps/common/tModLoader";
2024-11-27 23:58:53 -03:00
};
};
}