summaryrefslogtreecommitdiffstats
path: root/lass/2configs/websites/fritz.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-07-07 23:05:06 +0200
committertv <tv@krebsco.de>2016-07-07 23:05:06 +0200
commitf7d966043d04d73df719cbe6c13e4c1aa16bb7f7 (patch)
tree2bf4f994e8bcb15fe2ce16a1fe2d8f742234ab63 /lass/2configs/websites/fritz.nix
parentf18ababed59c21615d6659881a01597e18e706d3 (diff)
parent6eab08eef60d634324056b58c98a1b2a4fa1ed1f (diff)
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lass/2configs/websites/fritz.nix')
-rw-r--r--lass/2configs/websites/fritz.nix21
1 files changed, 8 insertions, 13 deletions
diff --git a/lass/2configs/websites/fritz.nix b/lass/2configs/websites/fritz.nix
index 0107da739..39f0cce06 100644
--- a/lass/2configs/websites/fritz.nix
+++ b/lass/2configs/websites/fritz.nix
@@ -74,18 +74,13 @@ in {
config.krebs.users.fritz.pubkey
];
- services.phpfpm.phpOptions = ''
- extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so
- sendmail_path = ${sendmail} -t
+ 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
'';
-
- #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
- #'';
}