ttyd for lio tailnet

This commit is contained in:
Joshua Bell 2026-02-10 00:44:54 -06:00
parent 9c77850ad5
commit b6a7454f1d
4 changed files with 64 additions and 4 deletions

21
hosts/lio/ttyd.nix Normal file
View file

@ -0,0 +1,21 @@
{
pkgs,
...
}:
{
systemd.services.ttyd = {
description = "TTYD - Web Terminal";
after = [ "network.target" "tailscaled.service" ];
wants = [ "tailscaled.service" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "simple";
User = "josh";
Group = "users";
ExecStart = "${pkgs.ttyd}/bin/ttyd -p 8383 -i 100.64.0.1 -W -c :root -t fontSize=56 -t rendererType=webgl -t disableLeaveAlert=true ${pkgs.zsh}/bin/zsh";
Restart = "on-failure";
RestartSec = "5s";
};
};
}