Unverified Commit 6a7650eb authored by Gutyina Gergő's avatar Gutyina Gergő
Browse files

nixos/n8n: move N8N_RUNNERS_CONFIG_PATH option to the final environment

Without this, the next commit would cause an infinite recursion error.
parent 6922af6e
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -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}";