apache-httpd: fix nix evaluation error

This only sets the timezone when it's not null to prevent:

  error: cannot coerce null to a string, at
  nixpkgs/nixos/modules/services/web-servers/apache-httpd/default.nix:676:7
This commit is contained in:
Bas van Dijk 2017-10-31 17:31:02 +01:00
parent fe9cefa7e4
commit 527781ebc4

View File

@ -676,6 +676,7 @@ in
''
; Needed for PHP's mail() function.
sendmail_path = sendmail -t -i
'' + optionalString (!isNull config.time.timeZone) ''
; Apparently PHP doesn't use $TZ.
date.timezone = "${config.time.timeZone}"