# 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)