Skip to content

Commit e6795d1

Browse files
sebastianrasorwillnorris
authored andcommitted
Add controlUrl option to NixOS module
Signed-off-by: Sebastian Rasor <[email protected]>
1 parent 491554a commit e6795d1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

flake.nix

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@
102102
description = "Path to SQLite database";
103103
};
104104

105+
controlUrl = mkOption {
106+
type = types.str;
107+
default = "https://controlplane.tailscale.com";
108+
description = ''
109+
the URL base of the control plane (i.e. coordination server)
110+
(default "https://controlplane.tailscale.com")
111+
'';
112+
};
113+
105114
tailscaleAuthKeyFile = mkOption {
106115
type = types.nullOr types.path;
107116
default = null;
@@ -135,7 +144,10 @@
135144
enable = true;
136145
script =
137146
let
138-
args = [ "--sqlitedb ${cfg.databaseFile}" ] ++ optionals cfg.verbose [ "--verbose" ];
147+
args = [
148+
"--sqlitedb ${cfg.databaseFile}"
149+
"--control-url ${cfg.controlUrl}"
150+
] ++ optionals cfg.verbose [ "--verbose" ];
139151
in
140152
''
141153
${optionalString (cfg.tailscaleAuthKeyFile != null) ''

0 commit comments

Comments
 (0)