char/flake
nixos flake
git clone https://git.t4t.associates/char/flake
a6e205b
main
1{ config , ...} : 2let 3tailscale = " ${ config . services . tailscale . package } /bin/tailscale" ; 4in 5{ 6# berry takes the node's HTTPS name at the root, where its client expects to live 7systemd . services . tailscale-serve-berry = { 8description = "Expose berry to the tailnet" ; 9wantedBy = [ "multi-user.target" ]; 10requires = [ "tailscaled.service" ]; 11after = [ "tailscaled.service" ]; 12serviceConfig = { 13ExecStartPre = " ${ tailscale } wait --timeout=60s" ; 14ExecStart = " ${ tailscale } serve --yes --https=443 http://127.0.0.1:8787" ; 15Restart = "on-failure" ; 16RestartSec = 1 ; 17}; 18}; 19}