Following up on #66: instead of documenting /opt/tailscale/tailscale for sudo (and non-interactive shells that don't source /etc/profile.d), we could bind-mount /opt/bin to /usr/local/bin via a oneshot systemd service on boot.
Since /usr/local/bin is in standard $PATH and secure_path, tailscale and sudo tailscale work out of the box. Also, since /etc/systemd/system is preserved by SteamOS atomic updates, this survives OS updates without manual re-runs.
——
Update:
run0 bash tailscale.sh and run0 tailscale update is better
Following up on #66: instead of documenting
/opt/tailscale/tailscaleforsudo(and non-interactive shells that don't source/etc/profile.d), we could bind-mount/opt/binto/usr/local/binvia a oneshot systemd service on boot.Since
/usr/local/binis in standard$PATHandsecure_path,tailscaleandsudo tailscalework out of the box. Also, since/etc/systemd/systemis preserved by SteamOS atomic updates, this survives OS updates without manual re-runs.——
Update:
run0 bash tailscale.shandrun0 tailscale updateis better