summary refs log tree commit diff
path: root/nixos/modules/services/web-servers/nginx/vhost-options.nix
diff options
context:
space:
mode:
authorUli Baum <xeji@cat3.de>2018-09-02 01:35:59 +0200
committerUli Baum <xeji@cat3.de>2018-09-02 01:35:59 +0200
commit15e6e1ff6f9d8cbebdfe560b0aba57f0601aba48 (patch)
treee4b3b5cb7115377ffbe68a08bd32cf9b22eb6d80 /nixos/modules/services/web-servers/nginx/vhost-options.nix
parent028b64ab08b1377d7c4a708869f94ac8d2f7b7bf (diff)
downloadnixpkgs-15e6e1ff6f9d8cbebdfe560b0aba57f0601aba48.tar
nixpkgs-15e6e1ff6f9d8cbebdfe560b0aba57f0601aba48.tar.gz
nixpkgs-15e6e1ff6f9d8cbebdfe560b0aba57f0601aba48.tar.bz2
nixpkgs-15e6e1ff6f9d8cbebdfe560b0aba57f0601aba48.tar.lz
nixpkgs-15e6e1ff6f9d8cbebdfe560b0aba57f0601aba48.tar.xz
nixpkgs-15e6e1ff6f9d8cbebdfe560b0aba57f0601aba48.tar.zst
nixpkgs-15e6e1ff6f9d8cbebdfe560b0aba57f0601aba48.zip
nixos/nginx: fix type of sslTrustedCertificate option
The option was added in 1251b34b5bbcd11a7a2974df7bada5d6d47b985d
with type `types.path` but default `null`, so eval failed with
the default setting. This broke the acme and certmgr tests.

cc: @vincentbernat @fpletz
Diffstat (limited to 'nixos/modules/services/web-servers/nginx/vhost-options.nix')
-rw-r--r--nixos/modules/services/web-servers/nginx/vhost-options.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/nginx/vhost-options.nix b/nixos/modules/services/web-servers/nginx/vhost-options.nix
index 6954d932eed..8e2b8819e71 100644
--- a/nixos/modules/services/web-servers/nginx/vhost-options.nix
+++ b/nixos/modules/services/web-servers/nginx/vhost-options.nix
@@ -130,7 +130,7 @@ with lib;
     };
 
     sslTrustedCertificate = mkOption {
-      type = types.path;
+      type = types.nullOr types.path;
       default = null;
       example = "/var/root.cert";
       description = "Path to root SSL certificate for stapling and client certificates.";