+postgres n8n@1.66.0

This commit is contained in:
m3tam3re 2024-11-13 10:51:59 +01:00
parent 8912665aa6
commit ff3d1735c0
3 changed files with 26 additions and 3 deletions

View File

@ -2,6 +2,7 @@
imports = [ imports = [
./containers ./containers
./n8n.nix ./n8n.nix
./postgres.nix
./sound.nix ./sound.nix
./udev.nix ./udev.nix
]; ];

View File

@ -0,0 +1,22 @@
{pkgs, ...}: {
services.postgresql = {
enable = true;
package = pkgs.postgresql_17;
extraPlugins = with pkgs.postgresql17Packages; [
pgvector
];
authentication = ''
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
host all all 10.88.0.0/16 trust
host all all 19.89.0.0/16 trust
'';
initialScript = pkgs.writeText "initialScript.sql" ''
CREATE USER n8n WITH PASSWORD 'n8n';
CREATE DATABASE n8n;
GRANT ALL PRIVILEGES ON DATABASE n8n TO n8n;
'';
};
}

View File

@ -1,17 +1,17 @@
{prev}: {prev}:
prev.n8n.overrideAttrs (oldAttrs: rec { prev.n8n.overrideAttrs (oldAttrs: rec {
pname = oldAttrs.pname; pname = oldAttrs.pname;
version = "1.63.0"; version = "1.66.0";
src = prev.fetchFromGitHub { src = prev.fetchFromGitHub {
owner = "n8n-io"; owner = "n8n-io";
repo = "n8n"; repo = "n8n";
rev = "n8n@${version}"; rev = "n8n@${version}";
hash = "sha256-zJHveCbBPJs8qbgCsU+dgucoXpAKa7PVLH4tfdcJZlE="; hash = "sha256-Q5n/z1BQSxj4B3LjEbhiJgLD++C/RUQ4g8yI0ngVtTg=";
}; };
pnpmDeps = prev.pnpm.fetchDeps { pnpmDeps = prev.pnpm.fetchDeps {
inherit pname version src; inherit pname version src;
hash = "sha256-jJc1qcyR5ERYvIou3c7KeRhe8KL00fk2vLIxn538hOE="; hash = "sha256-12pK2h8y+L2WT0f3SSLG1sq/yAIH6O08ZbPOKuEiSzs=";
}; };
}) })