A flake, package, and module for tsnet-serve.
As a flake:
tsnet-serve.url = "git+https://git.jolheiser.com/tsnet-serve-nix.git";
# ...
imports = [inputs.tsnet-serve.nixosModules.default];
{
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.