From eed3706aa7c780557974796ccc1df73200f13fd1 Mon Sep 17 00:00:00 2001 From: Nikita Pedorich Date: Fri, 12 Dec 2025 22:16:12 +0900 Subject: [PATCH] nixos/n8n: add package option --- nixos/modules/services/misc/n8n.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/n8n.nix b/nixos/modules/services/misc/n8n.nix index 60c4e1cfd3f7..e54d9c19f745 100644 --- a/nixos/modules/services/misc/n8n.nix +++ b/nixos/modules/services/misc/n8n.nix @@ -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";