+postgres n8n@1.66.0
This commit is contained in:
parent
8912665aa6
commit
ff3d1735c0
@ -2,6 +2,7 @@
|
||||
imports = [
|
||||
./containers
|
||||
./n8n.nix
|
||||
./postgres.nix
|
||||
./sound.nix
|
||||
./udev.nix
|
||||
];
|
||||
|
22
hosts/m3-kratos/services/postgres.nix
Normal file
22
hosts/m3-kratos/services/postgres.nix
Normal 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;
|
||||
'';
|
||||
};
|
||||
}
|
@ -1,17 +1,17 @@
|
||||
{prev}:
|
||||
prev.n8n.overrideAttrs (oldAttrs: rec {
|
||||
pname = oldAttrs.pname;
|
||||
version = "1.63.0";
|
||||
version = "1.66.0";
|
||||
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "n8n-io";
|
||||
repo = "n8n";
|
||||
rev = "n8n@${version}";
|
||||
hash = "sha256-zJHveCbBPJs8qbgCsU+dgucoXpAKa7PVLH4tfdcJZlE=";
|
||||
hash = "sha256-Q5n/z1BQSxj4B3LjEbhiJgLD++C/RUQ4g8yI0ngVtTg=";
|
||||
};
|
||||
|
||||
pnpmDeps = prev.pnpm.fetchDeps {
|
||||
inherit pname version src;
|
||||
hash = "sha256-jJc1qcyR5ERYvIou3c7KeRhe8KL00fk2vLIxn538hOE=";
|
||||
hash = "sha256-12pK2h8y+L2WT0f3SSLG1sq/yAIH6O08ZbPOKuEiSzs=";
|
||||
};
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user