From 5c3b087b19292c9fb7276a910de9f40296730e7d Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Tue, 22 May 2018 20:46:29 +0300 Subject: [PATCH] nixos/nginx: make sslCertificate and sslCertificateKey nullable https://github.com/NixOS/nixpkgs/pull/40932 --- nixos/modules/services/web-servers/nginx/vhost-options.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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."; };