ttyd for lio tailnet
This commit is contained in:
parent
9c77850ad5
commit
b6a7454f1d
4 changed files with 64 additions and 4 deletions
21
hosts/lio/ttyd.nix
Normal file
21
hosts/lio/ttyd.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue