File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1289,6 +1289,23 @@ in
12891289 } ;
12901290 } ;
12911291
1292+ systemd . services . mill-docs-agents-tailscale-serve = {
1293+ description = "Expose Mill docs agents via Tailscale Service" ;
1294+ wantedBy = [ "multi-user.target" ] ;
1295+ after = [
1296+ "tailscaled.service"
1297+ ] ;
1298+ wants = [
1299+ "tailscaled.service"
1300+ ] ;
1301+ serviceConfig = {
1302+ Type = "oneshot" ;
1303+ RemainAfterExit = true ;
1304+ ExecStart = "${ pkgs . bash } /bin/bash -c '${ pkgs . util-linux } /bin/flock /run/tailscale-serve.lock ${ pkgs . bash } /bin/bash -c \" for i in \\ $(seq 1 15); do ${ pkgs . tailscale } /bin/tailscale serve --bg --service=svc:mill-docs-agents --https=443 http://127.0.0.1:8788 && exit 0; sleep 1; done; exit 1\" '" ;
1305+ ExecStop = "${ pkgs . bash } /bin/bash -c '${ pkgs . tailscale } /bin/tailscale serve clear svc:mill-docs-agents || true'" ;
1306+ } ;
1307+ } ;
1308+
12921309 systemd . services . hermes-radar-cron-tick = {
12931310 description = "Run Radar cron jobs without an interactive gateway" ;
12941311 after = [ "network-online.target" ] ;
You can’t perform that action at this time.
0 commit comments