nixos/tailscale: Add option to disable upstream debug logging (#432412)

Changed files
+9
nixos
modules
services
networking
+9
nixos/modules/services/networking/tailscale.nix
···
description = "Whether to disable the Taildrop feature for sending files between nodes.";
};
+
disableUpstreamLogging = mkOption {
+
default = false;
+
type = types.bool;
+
description = "Whether to disable Tailscaled from sending debug logging upstream.";
+
};
+
package = lib.mkPackageOption pkgs "tailscale" { };
openFirewall = mkOption {
···
])
++ (lib.optionals (cfg.disableTaildrop) [
"TS_DISABLE_TAILDROP=true"
+
])
+
++ (lib.optionals (cfg.disableUpstreamLogging) [
+
"TS_NO_LOGS_NO_SUPPORT=true"
]);
# Restart tailscaled with a single `systemctl restart` at the
# end of activation, rather than a `stop` followed by a later