nixos/n8n: disable telemetry by default

Originally intended to just speed up the tests, but probably a good idea in general.

K900 337d3583 4f74287d

Changed files
+7 -4
nixos
modules
services
misc
tests
+5 -2
nixos/modules/services/misc/n8n.nix
···
in
{
options.services.n8n = {
-
enable = mkEnableOption (lib.mdDoc "n8n server");
openFirewall = mkOption {
···
type = format.type;
default = {};
description = lib.mdDoc ''
-
Configuration for n8n, see <https://docs.n8n.io/reference/configuration.html>
+
Configuration for n8n, see <https://docs.n8n.io/hosting/environment-variables/configuration-methods/>
for supported values.
'';
};
···
N8N_USER_FOLDER = "/var/lib/n8n";
HOME = "/var/lib/n8n";
N8N_CONFIG_FILES = "${configFile}";
+
+
# Don't phone home
+
N8N_DIAGNOSTICS_ENABLED = "false";
+
N8N_VERSION_NOTIFICATIONS_ENABLED = "false";
};
serviceConfig = {
Type = "simple";
+2 -2
nixos/tests/n8n.nix
···
testScript = ''
machine.wait_for_unit("n8n.service")
-
machine.wait_for_open_port(${toString port})
-
machine.succeed("curl --fail http://localhost:${toString port}/")
+
machine.wait_for_console_text("Editor is now accessible via")
+
machine.succeed("curl --fail -vvv http://localhost:${toString port}/")
'';
})