n8n enable

This commit is contained in:
2026-04-01 11:42:42 +03:00
parent efcb4232a5
commit cf77fa88bf
4 changed files with 49 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
{
config,
lib,
pkgs,
xlib,
inputs,
...
}:
{
services.n8n = {
enable = true;
environment = {
# N8N_USER_FOLDER = lib.mkForce "${xlib.dirs.services-mnt-folder}/n8n";
N8N_SECURE_COOKIE = "false";
N8N_PORT = 5678;
};
openFirewall = true;
};
systemd.tmpfiles.rules = [
"d ${xlib.dirs.services-mnt-folder}/n8n 0755 nobody nogroup -"
"z ${xlib.dirs.services-mnt-folder}/n8n 0755 nobody nogroup -"
];
fileSystems."/var/lib/n8n" = {
device = "${xlib.dirs.services-mnt-folder}/n8n";
options = [
"bind"
"nofail"
];
};
}