@@ -86,7 +86,7 @@ let
88 ssl_protocols ${cfg.sslProtocols};
88 ssl_protocols ${cfg.sslProtocols};
89− ssl_ciphers ${cfg.sslCiphers};
89+ ${optionalString (cfg.sslCiphers != null) "ssl_ciphers ${cfg.sslCiphers};"}
90 ${optionalString (cfg.sslDhparam != null) "ssl_dhparam ${cfg.sslDhparam};"}
90 ${optionalString (cfg.sslDhparam != null) "ssl_dhparam ${cfg.sslDhparam};"}
92 ${optionalString (cfg.recommendedTlsSettings) ''
92 ${optionalString (cfg.recommendedTlsSettings) ''
@@ -487,7 +487,7 @@ in
489 sslCiphers = mkOption {
489 sslCiphers = mkOption {
490− type = types.str;
490+ type = types.nullOr types.str;
491 # Keep in sync with https://ssl-config.mozilla.org/#server=nginx&config=intermediate
491 # Keep in sync with https://ssl-config.mozilla.org/#server=nginx&config=intermediate
492 default = "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
492 default = "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
493 description = "Ciphers to choose from when negotiating TLS handshakes.";
493 description = "Ciphers to choose from when negotiating TLS handshakes.";