Add systemd system service for gotty-server stuff

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2022-06-10 16:08:10 +08:00
parent 5a674ef00e
commit e2029dfc57
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
[Unit]
Description=Remote shell via Web
After=network.service network-online.target tailscaled.service
[Service]
# Assuming that the UNIX username is gildedguy and our default shell is being handed off through tmux via 'chsh -s /usr/bin/tmux' magic
# for tmux or byobu-enable for Byobu.
# That might not work on NixOS, since we need to update that too on every upgrade.
ExecStart=/usr/local/bin/gotty --reconnect --port 42088 -w --title-format "{{ .hostname }}+shell@ajhalili2006.tailnet" -- login
#Environment=GOTTY_ADDRESS=100.113.94.115
[Install]
WantedBy=multi-user.target