chore: flake update
This commit is contained in:
parent
015836f085
commit
0d45db8793
2 changed files with 43 additions and 24 deletions
19
specific/desktop/services/terraria.nix
Normal file
19
specific/desktop/services/terraria.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue