From 4fb3ad218c9a4dce4df37702e63702bb2fc39d84 Mon Sep 17 00:00:00 2001 From: Sebastian Rasor <92653912+sebastianrasor@users.noreply.github.com> Date: Thu, 18 Dec 2025 05:57:16 -0600 Subject: [PATCH] Add controlUrl option to NixOS module Signed-off-by: Sebastian Rasor <92653912+sebastianrasor@users.noreply.github.com> --- flake.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index bd83b82..33e7257 100644 --- a/flake.nix +++ b/flake.nix @@ -102,6 +102,15 @@ description = "Path to SQLite database"; }; + controlUrl = mkOption { + type = types.str; + default = "https://controlplane.tailscale.com"; + description = '' + the URL base of the control plane (i.e. coordination server) + (default "https://controlplane.tailscale.com") + ''; + }; + tailscaleAuthKeyFile = mkOption { type = types.nullOr types.path; default = null; @@ -135,7 +144,10 @@ enable = true; script = let - args = [ "--sqlitedb ${cfg.databaseFile}" ] ++ optionals cfg.verbose [ "--verbose" ]; + args = [ + "--sqlitedb ${cfg.databaseFile}" + "--control-url ${cfg.controlUrl}" + ] ++ optionals cfg.verbose [ "--verbose" ]; in '' ${optionalString (cfg.tailscaleAuthKeyFile != null) ''