summaryrefslogtreecommitdiffstats
path: root/lass/2configs/websites/domsen.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-05-13 00:22:22 +0200
committerlassulus <lass@aidsballs.de>2016-05-13 00:22:22 +0200
commitd4b67a1fed34a1256de1930598a0f6be42e89df1 (patch)
tree55f39400d60aa0a81871055e35a40021648d2ce7 /lass/2configs/websites/domsen.nix
parent3df6f0f98f120c991a18fbe2b906c64bc528366b (diff)
l 2 websites domsen: use msmtp as sendmail
Diffstat (limited to 'lass/2configs/websites/domsen.nix')
-rw-r--r--lass/2configs/websites/domsen.nix26
1 files changed, 18 insertions, 8 deletions
diff --git a/lass/2configs/websites/domsen.nix b/lass/2configs/websites/domsen.nix
index a6fdad645..001e339a4 100644
--- a/lass/2configs/websites/domsen.nix
+++ b/lass/2configs/websites/domsen.nix
@@ -1,7 +1,10 @@
{ config, pkgs, lib, ... }:
let
- inherit (config.krebs.lib) genid;
+ inherit (config.krebs.lib)
+ genid
+ readFile
+ ;
inherit (import ../../4lib { inherit lib pkgs; })
manageCert
manageCerts
@@ -11,6 +14,16 @@ let
serveOwncloud
serveWordpress;
+ msmtprc = pkgs.writeText "msmtprc" ''
+ account prism
+ host localhost
+ account default: prism
+ '';
+
+ sendmail = pkgs.writeDash "msmtp" ''
+ exec ${pkgs.msmtp}/bin/msmtp --read-envelope-from -C ${msmtprc} "$@"
+ '';
+
in {
imports = [
( ssl [ "reich-gebaeudereinigung.de" ])
@@ -66,13 +79,10 @@ in {
createHome = true;
};
- services.phpfpm.phpIni = pkgs.runCommand "php.ini" {
- options = ''
- extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so
- '';
- } ''
- cat ${pkgs.php}/etc/php-recommended.ini > $out
- echo "$options" >> $out
+ services.phpfpm.phpIni = pkgs.writeText "php.ini" ''
+ ${readFile "${pkgs.php}/etc/php-recommended.ini"}
+ extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so
+ sendmail_path = ${sendmail} -t
'';
}