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
commit527781ebc4137d9e6cda6dd21ab0dd776f8582d5
authorBas van Dijk <v.dijk.bas@gmail.com>
dateTue 31 Oct 2017, 17:31 (9 years ago)
parentfe9cefa
nixos/modules/services/web-servers/apache-httpd/default.nix+1
@@ -676,6 +676,7 @@ in
676676 ''
677677 ; Needed for PHP's mail() function.
678678 sendmail_path = sendmail -t -i
679+ '' + optionalString (!isNull config.time.timeZone) ''
679680
680681 ; Apparently PHP doesn't use $TZ.
681682 date.timezone = "${config.time.timeZone}"