I’m trying to setup Nginx as SMTP and IMAP reverse-proxy. But, as specified in the official documentation(Configuring NGINX as a Mail Proxy Server | NGINX Documentation), community version of Nginx has to be compiled with --with-mail --with-mail_ssl_module --with-openssl=[DIR]/openssl-1.1.1
So I’m wondering, if the Nginx package(pkgs.nginx) goes with mail proxy support compiled in?
building Nix...
building the system configuration...
error: The option value `environment.systemPackages.[definition 2-entry 5]' in `/etc/nixos/configuration.nix' is not of type `package'.
(use '--show-trace' to show detailed location information)
Putting it in systemPackages also won’t work if you run it with the NixOS module, because it doesn’t run nginx from your system path. You’d need to set this option.