From 2abb172bacad70f5b7b451df2a1a984bfff4a2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 24 Jan 2019 13:41:07 +0100 Subject: Add imagick for connexionswing Fixes https://git.immae.eu/mantisbt/view.php?id=108 --- virtual/modules/websites/connexionswing/connexionswing.nix | 5 ++++- virtual/modules/websites/connexionswing/default.nix | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/virtual/modules/websites/connexionswing/connexionswing.nix b/virtual/modules/websites/connexionswing/connexionswing.nix index ecbbfd5..f394574 100644 --- a/virtual/modules/websites/connexionswing/connexionswing.nix +++ b/virtual/modules/websites/connexionswing/connexionswing.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, writeText, fetchedGitPrivate, stdenv, composerEnv, fetchurl, fetchgit }: +{ pkgs, lib, writeText, fetchedGitPrivate, stdenv, composerEnv, phpPackages, fetchurl, fetchgit }: let connexionswing = { config }: rec { environment = config.environment; @@ -23,6 +23,9 @@ let ''; phpFpm = rec { socket = "/var/run/phpfpm/connexionswing-${environment}.sock"; + phpConfig = '' + extension=${phpPackages.imagick}/lib/php/extensions/imagick.so + ''; pool = '' listen = ${socket} user = ${apache.user} diff --git a/virtual/modules/websites/connexionswing/default.nix b/virtual/modules/websites/connexionswing/default.nix index 2e4dfc7..5ce3525 100644 --- a/virtual/modules/websites/connexionswing/default.nix +++ b/virtual/modules/websites/connexionswing/default.nix @@ -43,6 +43,7 @@ in { }; 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 = { @@ -56,6 +57,7 @@ in { 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 = { -- cgit v1.2.3