Home

tsnet-serve-nix @main - refs - log -
-
https://git.jolheiser.com/tsnet-serve-nix.git
tsnet-serve flake, package, and module
drwxrwxrwx
39 B
module/
drwxrwxrwx
39 B
pkg/
-rw-r--r--
1.1 kB
LICENSE
-rw-r--r--
718 B
README.md
-rw-r--r--
153 B
default.nix
-rw-r--r--
569 B
flake.lock
-rw-r--r--
548 B
flake.nix
-rw-r--r--
144 B
test.nix

tsnet-serve nix

A flake, package, and module for tsnet-serve.

Usage

As a flake:

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

Module:

{
  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