Skip to content

Commit

Permalink
phpfpm module: set correct nixos sendmail path
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Mar 11, 2017
1 parent 621e7a9 commit 323d0fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nixos/modules/services/web-servers/phpfpm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ let

phpIni = pkgs.runCommand "php.ini" {
inherit (cfg) phpPackage phpOptions;
passAsFile = [ "phpOptions" ];
nixDefaults = ''
sendmail_path = "/run/wrappers/bin/sendmail -t -i"
'';
passAsFile = [ "nixDefaults" "phpOptions" ];
} ''
cat $phpPackage/etc/php.ini $phpOptionsPath > $out
cat $phpPackage/etc/php.ini $nixDefaultsPath $phpOptionsPath > $out
'';

in {
Expand Down

0 comments on commit 323d0fd

Please sign in to comment.