nixos/n8n: add package option

This commit is contained in:
Nikita Pedorich
2025-12-12 22:16:12 +09:00
parent b00b0e5d23
commit eed3706aa7
+3 -1
View File
@@ -20,6 +20,8 @@ in
options.services.n8n = {
enable = lib.mkEnableOption "n8n server";
package = lib.mkPackageOption pkgs "n8n" { };
openFirewall = lib.mkOption {
type = lib.types.bool;
default = false;
@@ -89,7 +91,7 @@ in
};
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.n8n}/bin/n8n";
ExecStart = lib.getExe cfg.package;
Restart = "on-failure";
StateDirectory = "n8n";