Home

tsnet-serve-nix @main - refs - log -
-
https://git.jolheiser.com/tsnet-serve-nix.git
tsnet-serve flake, package, and module
tsnet-serve-nix / README.md
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# tsnet-serve nix

A flake, package, and module for [tsnet-serve](https://github.com/shayne/tsnet-serve).

## Usage

As a flake:

```nix
tsnet-serve.url = "git+https://git.jolheiser.com/tsnet-serve-nix.git";
# ...
imports = [inputs.tsnet-serve.nixosModules.default];
```

[Module](./module/default.nix):

```nix
{
  services.tsnet-serve.instances = {
    "myapp" = {
      enable = true;
      backend = "http://127.0.0.1:XXXX";
      authKey = "<one-time auth key>"; # https://login.tailscale.com/admin/settings/keys
    };
    "otherapp" = {
      // ...
    };
  };
}
```

The module still has a few TODOs but should generally work. I'm already using it in a server config successfully.

## License

[MIT](LICENSE)