{ 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 = { networking.firewall.allowedTCPPorts = [ 80 ]; services.n8n = { }; system.stateVersion = "25.05"; }; }; }; }