From 9d5fdbea6ba20b69bf146b8118ab6ce0b4ebceb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 4 Dec 2024 14:23:42 +0000 Subject: [PATCH 1/3] services: add tailscale funnel --- src/modules/services/tailscale.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/modules/services/tailscale.nix diff --git a/src/modules/services/tailscale.nix b/src/modules/services/tailscale.nix new file mode 100644 index 000000000..ba57439da --- /dev/null +++ b/src/modules/services/tailscale.nix @@ -0,0 +1,27 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.tailscale; +in +{ + options = { + services.tailscale = { + funnel = { + enable = mkEnableOption "Tailscale funnel"; + + target = mkOption { + type = types.str; + description = "Target host or host:port for Tailscale funnel"; + }; + }; + }; + }; + + config.processes = lib.mkIf cfg.funnel.enable { + "tailscale-funnel" = { + exec = "${pkgs.tailscale}/bin/tailscale funnel --yes ${cfg.funnel.target}"; + }; + }; +} From c124a5d2935797a7ebbae47253bc09ed8f836c5f Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:34:00 +0000 Subject: [PATCH 2/3] Auto generate docs/reference/options.md --- docs/reference/options.md | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/docs/reference/options.md b/docs/reference/options.md index a10955d57..8b4175096 100644 --- a/docs/reference/options.md +++ b/docs/reference/options.md @@ -70715,6 +70715,48 @@ signed integer +## services.tailscale.funnel.enable + + + +Whether to enable Tailscale funnel. + + + +*Type:* +boolean + + + +*Default:* +` false ` + + + +*Example:* +` true ` + +*Declared by:* + - [https://github.com/cachix/devenv/blob/main/src/modules/services/tailscale.nix](https://github.com/cachix/devenv/blob/main/src/modules/services/tailscale.nix) + + + +## services.tailscale.funnel.target + + + +Target host or host:port for Tailscale funnel + + + +*Type:* +string + +*Declared by:* + - [https://github.com/cachix/devenv/blob/main/src/modules/services/tailscale.nix](https://github.com/cachix/devenv/blob/main/src/modules/services/tailscale.nix) + + + ## services.temporal.enable From cd5d4732d0fee6cf51fd2b52bfd1eb64751cdc17 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:34:03 +0000 Subject: [PATCH 3/3] Auto generate missing individual markdowns --- docs/individual-docs/services/tailscale.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/individual-docs/services/tailscale.md diff --git a/docs/individual-docs/services/tailscale.md b/docs/individual-docs/services/tailscale.md new file mode 100644 index 000000000..d3615c80f --- /dev/null +++ b/docs/individual-docs/services/tailscale.md @@ -0,0 +1,5 @@ + + +[comment]: # (Please add your documentation on top of this line) + +@AUTOGEN_OPTIONS@