fix(tailscale): Disable telemetry
Tailscale the product, by default, has logs sent to tailscale the
company. While I'm certain this is excellent for getting support if you
are using their default server, this is irrelevant if you're using
headscale.
I've added the environment variable to disable logs, conditional on you
using a non-tailscale control plane.
Change-Id: Idfd94171326d4affa978920db8ef2f39e5d7c444
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/747
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/nixos/tailscale/default.nix b/modules/nixos/tailscale/default.nix
index 8c6dded..04dcf2f 100644
--- a/modules/nixos/tailscale/default.nix
+++ b/modules/nixos/tailscale/default.nix
@@ -47,5 +47,9 @@
);
authKeyFile = lib.mkIf (cfg.authKeyFile != null) cfg.authKeyFile;
};
+
+ systemd.services.tailscaled.environment.TS_NO_LOGS_NO_SUPPORT = lib.mkIf (
+ cfg.server != "https://controlplane.tailscale.com"
+ ) "true";
};
}