From b64b2d25c2b25ff39fa4036f66cd6528f34ad6e3 Mon Sep 17 00:00:00 2001 From: Sandro Date: Sun, 6 Oct 2024 03:17:31 +0200 Subject: [PATCH] nixos/nginx: remove shortand from defaultText --- nixos/modules/services/web-servers/nginx/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index a7efd69adac3..d9081ec65275 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -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.