char/flake

nixos flake

git clone https://git.t4t.associates/char/flake

Charlotte Somfor some reason tailscaled reports started too soon soa6e205b

main
614 B19 linesraw
1{ config, ... }:
2let
3  tailscale = "${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
7  systemd.services.tailscale-serve-berry = {
8    description = "Expose berry to the tailnet";
9    wantedBy = [ "multi-user.target" ];
10    requires = [ "tailscaled.service" ];
11    after = [ "tailscaled.service" ];
12    serviceConfig = {
13      ExecStartPre = "${tailscale} wait --timeout=60s";
14      ExecStart = "${tailscale} serve --yes --https=443 http://127.0.0.1:8787";
15      Restart = "on-failure";
16      RestartSec = 1;
17    };
18  };
19}