diff options
author | lassulus <lass@aidsballs.de> | 2016-06-13 13:49:24 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-06-13 13:49:24 +0200 |
commit | de43b0e6f50e4d044cc0609a3d7d7c7d869552fe (patch) | |
tree | 1052ca5404a968a3be2d732c3661cbf37b891140 /lass/2configs/websites/fritz.nix | |
parent | 69c36df9acb0ca85c7412bf2ebb815fe827c0ba9 (diff) |
l 2 websites fritz: activate sendmail
Diffstat (limited to 'lass/2configs/websites/fritz.nix')
-rw-r--r-- | lass/2configs/websites/fritz.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lass/2configs/websites/fritz.nix b/lass/2configs/websites/fritz.nix index 63efbecb6..c2b8ff116 100644 --- a/lass/2configs/websites/fritz.nix +++ b/lass/2configs/websites/fritz.nix @@ -12,6 +12,16 @@ let serveWordpress ; + msmtprc = pkgs.writeText "msmtprc" '' + account localhost + host localhost + account default: localhost + ''; + + sendmail = pkgs.writeDash "msmtp" '' + exec ${pkgs.msmtp}/bin/msmtp --read-envelope-from -C ${msmtprc} "$@" + ''; + in { imports = [ ./sqlBackup.nix @@ -51,4 +61,14 @@ in { users.users.root.openssh.authorizedKeys.keys = [ config.krebs.users.fritz.pubkey ]; + + services.phpfpm.phpIni = pkgs.runCommand "php.ini" { + options = '' + extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so + sendmail_path = "${sendmail} -t -i" + ''; + } '' + cat ${pkgs.php}/etc/php-recommended.ini > $out + echo "$options" >> $out + ''; } |