From 75ae18b73e1a630945c3b405f6702f13f4ec0d49 Mon Sep 17 00:00:00 2001 From: m3tam3re Date: Fri, 14 Feb 2025 09:32:40 +0100 Subject: [PATCH] @n8n updatr to 1.78 --- flake.lock | 17 ----------------- hosts/m3-atlas/services/n8n.nix | 24 ++++++++++++++++++++++++ overlays/mods/n8n.nix | 6 +++--- 3 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 hosts/m3-atlas/services/n8n.nix diff --git a/flake.lock b/flake.lock index 26bc574..b4c98d7 100644 --- a/flake.lock +++ b/flake.lock @@ -221,22 +221,6 @@ "type": "github" } }, - "nixpkgs-80c8ffb": { - "locked": { - "lastModified": 1726604095, - "narHash": "sha256-4ipVsmZQiSdMx/8BqMurOUBIRCrKjjwTKLFNk3frrRs=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "80c8ffb38e221c3c1b2ab81a9f9a1194f109a9ea", - "type": "github" - }, - "original": { - "owner": "nixos", - "repo": "nixpkgs", - "rev": "80c8ffb38e221c3c1b2ab81a9f9a1194f109a9ea", - "type": "github" - } - }, "nixpkgs-d016996": { "locked": { "lastModified": 1737074211, @@ -341,7 +325,6 @@ "home-manager": "home-manager_2", "hyprpanel": "hyprpanel", "nixpkgs": "nixpkgs_3", - "nixpkgs-80c8ffb": "nixpkgs-80c8ffb", "nixpkgs-d016996": "nixpkgs-d016996", "nixpkgs-master": "nixpkgs-master", "nixpkgs-stable": "nixpkgs-stable", diff --git a/hosts/m3-atlas/services/n8n.nix b/hosts/m3-atlas/services/n8n.nix new file mode 100644 index 0000000..e5138bf --- /dev/null +++ b/hosts/m3-atlas/services/n8n.nix @@ -0,0 +1,24 @@ +{ + services.n8n = { + enable = true; + webhookUrl = "https://wf.m3tam3re.com"; + }; + + # Traefik configuration specific to n8n + services.traefik.dynamicConfigOptions.http = { + services.n8n.loadBalancer.servers = [ + { + url = "http://localhost:5678/"; + } + ]; + + routers.gitea = { + rule = "Host(`wf.m3tam3re.com`)"; + tls = { + certResolver = "godaddy"; + }; + service = "n8n"; + entrypoints = "websecure"; + }; + }; +} diff --git a/overlays/mods/n8n.nix b/overlays/mods/n8n.nix index 862b313..bc2fdc5 100644 --- a/overlays/mods/n8n.nix +++ b/overlays/mods/n8n.nix @@ -1,17 +1,17 @@ {prev}: prev.n8n.overrideAttrs (oldAttrs: rec { pname = oldAttrs.pname; - version = "1.77.0"; + version = "1.78.0"; src = prev.fetchFromGitHub { owner = "n8n-io"; repo = "n8n"; rev = "n8n@${version}"; - hash = "sha256-j3hoHkZVmlahV16rab8d3vE00xrQhhn7syGB9Td0kdU="; + hash = "sha256-ebMuhbUyak13wQ7qWvpNCcmL52J24QPsGmEvIifnzVo="; }; pnpmDeps = prev.pnpm_9.fetchDeps { inherit pname version src; - hash = "sha256-MUfiIPPFoOLwH1EeQ2HQX1KqKzbyExXydCDRSUG4GbQ="; + hash = "sha256-1vheGCTGacrQMVJjYrEuv4NC4ImSb+WAbYLXpEithnM="; }; })