From 23d5310b27793988c997cac57c3e7a090cc5cc96 Mon Sep 17 00:00:00 2001 From: pazpi Date: Thu, 8 Jan 2026 08:34:34 +0100 Subject: [PATCH] Some fix to n8n deployment and support for community plugins --- hosts/n8n/default.nix | 8 +++++++- modules/services/n8n.nix | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/n8n/default.nix b/hosts/n8n/default.nix index 6190d15..bddef4f 100644 --- a/hosts/n8n/default.nix +++ b/hosts/n8n/default.nix @@ -4,11 +4,17 @@ lib, ... }: +let + p = import ../parameters.nix; +in { my = { - services.n8n.enable = true; + services.n8n = { + enable = true; + proxy.domain = p.domains.public; + }; services.ilpost-addict.enable = true; diff --git a/modules/services/n8n.nix b/modules/services/n8n.nix index 7cb35dc..1115116 100644 --- a/modules/services/n8n.nix +++ b/modules/services/n8n.nix @@ -66,6 +66,9 @@ in // cfg.environment; }; + # Add npm/nodejs to n8n's PATH + systemd.services.n8n.path = [ pkgs.nodejs pkgs.gnutar pkgs.gzip ]; + }) (lib.mkIf cfg.proxy.enable {