-{ pkgs, lib, writeText, fetchedGitPrivate, stdenv, composerEnv, fetchurl, fetchgit }:
+{ pkgs, lib, writeText, fetchedGitPrivate, stdenv, composerEnv, phpPackages, fetchurl, fetchgit }:
let
connexionswing = { config }: rec {
environment = config.environment;
'';
phpFpm = rec {
socket = "/var/run/phpfpm/connexionswing-${environment}.sock";
+ phpConfig = ''
+ extension=${phpPackages.imagick}/lib/php/extensions/imagick.so
+ '';
pool = ''
listen = ${socket}
user = ${apache.user}
};
services.myPhpfpm.poolConfigs.connexionswing_prod = connexionswing_prod.phpFpm.pool;
+ services.myPhpfpm.poolPhpConfigs.connexionswing_prod = connexionswing_prod.phpFpm.phpConfig;
system.activationScripts.connexionswing_prod = connexionswing_prod.activationScript;
services.myWebsites.production.modules = connexionswing_prod.apache.modules;
services.myWebsites.production.vhostConfs.connexionswing = {
security.acme.certs."eldiron".extraDomains."sandetludo.immae.eu" = null;
security.acme.certs."eldiron".extraDomains."connexionswing.immae.eu" = null;
services.myPhpfpm.poolConfigs.connexionswing_dev = connexionswing_dev.phpFpm.pool;
+ services.myPhpfpm.poolPhpConfigs.connexionswing_dev = connexionswing_dev.phpFpm.phpConfig;
system.activationScripts.connexionswing_dev = connexionswing_dev.activationScript;
services.myWebsites.integration.modules = connexionswing_dev.apache.modules;
services.myWebsites.integration.vhostConfs.connexionswing = {