nix-configurations/hosts/lkk-nix-1/services/n8n.nix

27 lines
618 B
Nix
Raw Normal View History

2023-03-30 04:38:48 +00:00
{ config, pkgs, ... }: {
disabledModules = [ "system/services/n8n.nix" ];
nixpkgs.overlays =
[ (self: super:
{
n8n = pkgs.unstable.n8n;
})
];
2023-01-18 19:14:16 +00:00
services.n8n = {
enable = true;
openFirewall = true;
settings = {
editorBaseUrl = "https://wf.lanakk.com";
host = "https://wf.lanakk.com";
};
};
systemd.services.n8n.environment = {
2023-03-30 04:27:29 +00:00
BILLBEE_API_KEY =
config.age.secrets.billbee-api-key.path; # TODO env file for systemd service
2023-01-18 19:14:16 +00:00
};
2023-03-28 10:03:26 +00:00
systemd.services.traefik.serviceConfig = {
2023-03-30 04:27:29 +00:00
EnvironmentFile = "${config.age.secrets.traefik-env.path}";
2023-03-28 10:03:26 +00:00
};
2023-01-18 19:14:16 +00:00
}