From 6a7650ebddf91d38b867cc35151be8fbebd6cf19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Wed, 25 Feb 2026 20:41:43 +0100 Subject: [PATCH] nixos/n8n: move N8N_RUNNERS_CONFIG_PATH option to the final environment Without this, the next commit would cause an infinite recursion error. --- nixos/modules/services/misc/n8n.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/nixos/modules/services/misc/n8n.nix b/nixos/modules/services/misc/n8n.nix index 7e302a190a87..ed149ce75952 100644 --- a/nixos/modules/services/misc/n8n.nix +++ b/nixos/modules/services/misc/n8n.nix @@ -240,14 +240,6 @@ in (coercedTo bool builtins.toJSON str) ]); options = { - N8N_RUNNERS_CONFIG_PATH = lib.mkOption { - internal = true; - type = with lib.types; nullOr path; - default = launcherConfigFile; - description = '' - Path to the configuration file for the task runner launcher. - ''; - }; N8N_RUNNERS_AUTH_TOKEN_FILE = lib.mkOption { type = with lib.types; nullOr path; default = cfg.environment.N8N_RUNNERS_AUTH_TOKEN_FILE; @@ -401,7 +393,11 @@ in after = [ "n8n.service" ]; requires = [ "n8n.service" ]; wantedBy = [ "multi-user.target" ]; - environment = runnersEnv.regular // runnersEnv.fileBasedTransformed; + environment = { + N8N_RUNNERS_CONFIG_PATH = launcherConfigFile; + } + // runnersEnv.regular + // runnersEnv.fileBasedTransformed; serviceConfig = { Type = "simple"; ExecStart = "${lib.getExe runnersCfg.launcherPackage} ${lib.concatStringsSep " " runnerTypes}";