From 5537ea26424f8c2ee960318cedd92e476c93e206 Mon Sep 17 00:00:00 2001 From: sweenu Date: Tue, 11 Nov 2025 09:52:17 +0100 Subject: [PATCH] nixos/n8n: fix malformed env vars --- nixos/modules/services/misc/n8n.nix | 4 ++-- nixos/tests/n8n.nix | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/misc/n8n.nix b/nixos/modules/services/misc/n8n.nix index 60c4e1cfd3f7..4231fc73a51e 100644 --- a/nixos/modules/services/misc/n8n.nix +++ b/nixos/modules/services/misc/n8n.nix @@ -59,7 +59,7 @@ in readOnly = true; }; N8N_DIAGNOSTICS_ENABLED = lib.mkOption { - type = with lib.types; coercedTo bool toString str; + type = with lib.types; coercedTo bool builtins.toJSON str; default = false; description = '' Whether to share selected, anonymous telemetry with n8n. @@ -67,7 +67,7 @@ in ''; }; N8N_VERSION_NOTIFICATIONS_ENABLED = lib.mkOption { - type = with lib.types; coercedTo bool toString str; + type = with lib.types; coercedTo bool builtins.toJSON str; default = false; description = '' When enabled, n8n sends notifications of new versions and security updates. diff --git a/nixos/tests/n8n.nix b/nixos/tests/n8n.nix index ee1f835f8c99..f9661a5abec4 100644 --- a/nixos/tests/n8n.nix +++ b/nixos/tests/n8n.nix @@ -28,5 +28,6 @@ in machine.succeed("grep -qF ${webhookUrl} /etc/systemd/system/n8n.service") machine.succeed("grep -qF 'HOME=/var/lib/n8n' /etc/systemd/system/n8n.service") machine.fail("grep -qF 'GENERIC_TIMEZONE=' /etc/systemd/system/n8n.service") + machine.succeed("grep -qF 'N8N_DIAGNOSTICS_ENABLED=false' /etc/systemd/system/n8n.service") ''; }