nixos/n8n: move N8N_RUNNERS_CONFIG_PATH option to the final environment
Without this, the next commit would cause an infinite recursion error.
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user