Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) ''
Expand Down
Loading