From e2029dfc570dcf9b695af389f71cbe158e80f464 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Eugenio Halili Date: Fri, 10 Jun 2022 16:08:10 +0800 Subject: [PATCH] Add systemd system service for gotty-server stuff Signed-off-by: Andrei Jiroh Eugenio Halili --- systemd/system/gotty-server.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 systemd/system/gotty-server.service diff --git a/systemd/system/gotty-server.service b/systemd/system/gotty-server.service new file mode 100644 index 0000000..6cbbd26 --- /dev/null +++ b/systemd/system/gotty-server.service @@ -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