Merge: nixos/nginx: remove shortand from defaultText (#346767)

This commit is contained in:
Maximilian Bosch 2024-10-06 17:13:51 +02:00 committed by GitHub
commit 5ee80e8120
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -896,7 +896,7 @@ in
typesHashMaxSize = mkOption {
type = types.ints.positive;
default = if cfg.defaultMimeTypes == "${pkgs.mailcap}/etc/nginx/mime.types" then 2688 else 1024;
defaultText = literalExpression ''if cfg.defaultMimeTypes == "''${pkgs.mailcap}/etc/nginx/mime.types" then 2688 else 1024'';
defaultText = literalExpression ''if config.services.nginx.defaultMimeTypes == "''${pkgs.mailcap}/etc/nginx/mime.types" then 2688 else 1024'';
description = ''
Sets the maximum size of the types hash tables (`types_hash_max_size`).
It is recommended that the minimum size possible size is used.