mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
n8n added
This commit is contained in:
+10
-6
@@ -6,11 +6,15 @@
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
configDir = "${xlib.dirs.services-mnt-folder}/n8n";
|
||||
varDir = "/var/lib/n8n";
|
||||
in
|
||||
{
|
||||
services.n8n = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
environment = {
|
||||
# N8N_USER_FOLDER = lib.mkForce "${xlib.dirs.services-mnt-folder}/n8n";
|
||||
# N8N_USER_FOLDER = lib.mkForce "${configDir}";
|
||||
N8N_SECURE_COOKIE = "false";
|
||||
N8N_PORT = 5678;
|
||||
};
|
||||
@@ -18,12 +22,12 @@
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${xlib.dirs.services-mnt-folder}/n8n 0755 nobody nogroup -"
|
||||
"z ${xlib.dirs.services-mnt-folder}/n8n 0755 nobody nogroup -"
|
||||
"d ${configDir} 0755 nobody nogroup -"
|
||||
"z ${configDir} 0755 nobody nogroup -"
|
||||
];
|
||||
|
||||
fileSystems."/var/lib/n8n" = {
|
||||
device = "${xlib.dirs.services-mnt-folder}/n8n";
|
||||
fileSystems.${varDir} = {
|
||||
device = "${configDir}";
|
||||
fsType = "none";
|
||||
options = [
|
||||
"bind"
|
||||
|
||||
Reference in New Issue
Block a user