Skip to content

Commit

Permalink
Add some n8n plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Dec 12, 2024
1 parent 770b47b commit c080abe
Show file tree
Hide file tree
Showing 5 changed files with 1,703 additions and 5 deletions.
17 changes: 12 additions & 5 deletions nki-personal-do/n8n.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
let
secrets = config.sops.secrets;

Expand All @@ -8,6 +8,8 @@ let
port = 23412;

dataFolder = "/mnt/data/n8n";

plugins = pkgs.callPackage ./n8n/plugins/package.nix { };
in
{
sops.secrets."n8n/env" = { reloadUnits = [ "n8n.service" ]; };
Expand Down Expand Up @@ -63,9 +65,14 @@ in
};
unitConfig.RequiresMountsFor = [ dataFolder ];
};
systemd.tmpfiles.settings."10-n8n".${dataFolder}.d = {
user = user;
group = user;
mode = "0700";
systemd.tmpfiles.settings."10-n8n" = {
${dataFolder}.d = {
user = user;
group = user;
mode = "0700";
};
"${dataFolder}/.n8n/nodes"."L+" = {
argument = "${plugins}";
};
};
}
1 change: 1 addition & 0 deletions nki-personal-do/n8n/plugins/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
Loading

0 comments on commit c080abe

Please sign in to comment.