get services to build properly again on flame

This commit is contained in:
Noah Masur
2025-11-07 00:26:00 +00:00
parent ebbc9c5a5d
commit ceca1ffd5a
3 changed files with 10 additions and 14 deletions

View File

@@ -2,7 +2,6 @@
# together with triggers.
{ config, lib, ... }:
let
inherit (config.nmasur.settings) hostnames;
cfg = config.nmasur.presets.services.n8n;
@@ -18,18 +17,13 @@ in
services.n8n = {
enable = true;
webhookUrl = "https://${hostnames.n8n}";
settings = {
listen_address = "127.0.0.1";
port = 5678;
environment = {
N8N_LISTEN_ADDRESS = "127.0.0.1";
N8N_PORT = 5678;
N8N_EDITOR_BASE_URL = "https://${hostnames.n8n}";
};
};
systemd.services.n8n.environment = {
N8N_EDITOR_BASE_URL = config.services.n8n.webhookUrl;
};
# Configure Cloudflare DNS to point to this machine
services.cloudflare-dyndns.domains = [ hostnames.n8n ];
@@ -40,7 +34,9 @@ in
handle = [
{
handler = "reverse_proxy";
upstreams = [ { dial = "localhost:${builtins.toString config.services.n8n.settings.port}"; } ];
upstreams = [
{ dial = "localhost:${builtins.toString config.services.n8n.environment.N8N_PORT}"; }
];
}
];
}

View File

@@ -30,9 +30,9 @@ in
karakeep.enable = lib.mkDefault true;
litestream.enable = lib.mkDefault true;
mathesar.enable = lib.mkDefault true;
minecraft-server.enable = lib.mkDefault true;
minecraft-server.enable = lib.mkDefault false;
n8n.enable = lib.mkDefault true;
nix-autoupgrade.enable = lib.mkDefault false; # On by default for communications
nix-autoupgrade.enable = lib.mkDefault true; # On by default for communications
ntfy-sh.enable = lib.mkDefault true;
pgweb.enable = lib.mkDefault true;
postgresql.enable = lib.mkDefault true;