diff --git a/nixos/modules/services/web-servers/nginx/vhost-options.nix b/nixos/modules/services/web-servers/nginx/vhost-options.nix index 455854e2a9655..447313b5c0c1c 100644 --- a/nixos/modules/services/web-servers/nginx/vhost-options.nix +++ b/nixos/modules/services/web-servers/nginx/vhost-options.nix @@ -119,13 +119,15 @@ with lib; }; sslCertificate = mkOption { - type = types.path; + type = types.nullOr types.path; + default = null; example = "/var/host.cert"; description = "Path to server SSL certificate."; }; sslCertificateKey = mkOption { - type = types.path; + type = types.nullOr types.path; + default = null; example = "/var/host.key"; description = "Path to server SSL certificate key."; };