chore: flake update

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2024-11-27 23:58:53 -03:00
parent 015836f085
commit 0d45db8793
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
2 changed files with 43 additions and 24 deletions

View file

@ -0,0 +1,19 @@
{
pkgs,
...
}:
{
systemd.user.services.terraria = {
Install.WantedBy = [ "default.target" ];
Unit.Description = "Terraria Tmux Server";
Service = {
ExecStart = "${pkgs.tmux}/bin/tmux new -s Terraria -d 'fhs -c \"dotnet ./tModLoader.dll -server -config serverconfig.txt\"'";
ExecStop = "${pkgs.tmux}/bin/tmux kill-server";
Restart = "on-failure";
Type = "forking";
};
};
}