34 lines
769 B
Nix
34 lines
769 B
Nix
{ config, lib, ... }: {
|
|
|
|
options.sysconfig.opts.virtualization.n8n.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
config = lib.mkIf config.sysconfig.opts.virtualization.n8n.enable {
|
|
|
|
containers.n8n = {
|
|
|
|
autoStart = true;
|
|
privateNetwork = true;
|
|
hostAddress = "192.168.100.10";
|
|
localAddress = "192.168.100.21";
|
|
|
|
config = {
|
|
|
|
services.n8n = {
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
settings = {};
|
|
|
|
webhookUrl = "";
|
|
};
|
|
|
|
system.stateVersion = "25.05";
|
|
};
|
|
};
|
|
};
|
|
}
|