aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-21 02:47:52 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-21 02:47:52 +0200
commitf40f5b235b890f46770a22f005f8a0f664cf0562 (patch)
tree60bbcac4b528324fe7e83f280d65190b57bb810a /modules
parent1480d60775dcd38b33abd367a91cd1b865aacc54 (diff)
downloadNix-f40f5b235b890f46770a22f005f8a0f664cf0562.tar.gz
Nix-f40f5b235b890f46770a22f005f8a0f664cf0562.tar.zst
Nix-f40f5b235b890f46770a22f005f8a0f664cf0562.zip
Replace myPhpfpm with correct overrides
Diffstat (limited to 'modules')
-rw-r--r--modules/private/websites/aten/integration.nix7
-rw-r--r--modules/private/websites/aten/production.nix7
-rw-r--r--modules/private/websites/chloe/builder.nix1
-rw-r--r--modules/private/websites/chloe/integration.nix12
-rw-r--r--modules/private/websites/chloe/production.nix12
-rw-r--r--modules/private/websites/connexionswing/builder.nix1
-rw-r--r--modules/private/websites/connexionswing/integration.nix12
-rw-r--r--modules/private/websites/connexionswing/production.nix12
-rw-r--r--modules/private/websites/florian/app.nix7
-rw-r--r--modules/private/websites/immae/production.nix2
-rw-r--r--modules/private/websites/leila/production.nix2
-rw-r--r--modules/private/websites/ludivinecassal/integration.nix7
-rw-r--r--modules/private/websites/ludivinecassal/production.nix7
-rw-r--r--modules/private/websites/naturaloutil/production.nix35
-rw-r--r--modules/private/websites/piedsjaloux/integration.nix7
-rw-r--r--modules/private/websites/piedsjaloux/production.nix7
16 files changed, 81 insertions, 57 deletions
diff --git a/modules/private/websites/aten/integration.nix b/modules/private/websites/aten/integration.nix
index 790c5a9..5ccc0c1 100644
--- a/modules/private/websites/aten/integration.nix
+++ b/modules/private/websites/aten/integration.nix
@@ -13,9 +13,10 @@ in {
13 13
14 config = lib.mkIf cfg.enable { 14 config = lib.mkIf cfg.enable {
15 secrets.keys = aten.keys; 15 secrets.keys = aten.keys;
16 services.myPhpfpm.preStart.aten_dev = aten.phpFpm.preStart; 16 systemd.services.phpfpm-aten_dev.preStart = lib.mkAfter aten.phpFpm.preStart;
17 services.myPhpfpm.serviceDependencies.aten_dev = aten.phpFpm.serviceDeps; 17 systemd.services.phpfpm-aten_dev.after = lib.mkAfter aten.phpFpm.serviceDeps;
18 services.myPhpfpm.poolConfigs.aten_dev = aten.phpFpm.pool; 18 systemd.services.phpfpm-aten_dev.wants = aten.phpFpm.serviceDeps;
19 services.phpfpm.poolConfigs.aten_dev = aten.phpFpm.pool;
19 system.activationScripts.aten_dev = aten.activationScript; 20 system.activationScripts.aten_dev = aten.activationScript;
20 system.extraSystemBuilderCmds = '' 21 system.extraSystemBuilderCmds = ''
21 mkdir -p $out/webapps 22 mkdir -p $out/webapps
diff --git a/modules/private/websites/aten/production.nix b/modules/private/websites/aten/production.nix
index 697f1b8..7938241 100644
--- a/modules/private/websites/aten/production.nix
+++ b/modules/private/websites/aten/production.nix
@@ -15,9 +15,10 @@ in {
15 secrets.keys = aten.keys; 15 secrets.keys = aten.keys;
16 services.webstats.sites = [ { name = "aten.pro"; } ]; 16 services.webstats.sites = [ { name = "aten.pro"; } ];
17 17
18 services.myPhpfpm.preStart.aten_prod = aten.phpFpm.preStart; 18 systemd.services.phpfpm-aten_prod.preStart = lib.mkAfter aten.phpFpm.preStart;
19 services.myPhpfpm.serviceDependencies.aten_prod = aten.phpFpm.serviceDeps; 19 systemd.services.phpfpm-aten_prod.after = lib.mkAfter aten.phpFpm.serviceDeps;
20 services.myPhpfpm.poolConfigs.aten_prod = aten.phpFpm.pool; 20 systemd.services.phpfpm-aten_prod.wants = aten.phpFpm.serviceDeps;
21 services.phpfpm.poolConfigs.aten_prod = aten.phpFpm.pool;
21 system.activationScripts.aten_prod = aten.activationScript; 22 system.activationScripts.aten_prod = aten.activationScript;
22 system.extraSystemBuilderCmds = '' 23 system.extraSystemBuilderCmds = ''
23 mkdir -p $out/webapps 24 mkdir -p $out/webapps
diff --git a/modules/private/websites/chloe/builder.nix b/modules/private/websites/chloe/builder.nix
index 7b72b97..f65e9a9 100644
--- a/modules/private/websites/chloe/builder.nix
+++ b/modules/private/websites/chloe/builder.nix
@@ -5,7 +5,6 @@ rec {
5 serviceDeps = [ "mysql.service" ]; 5 serviceDeps = [ "mysql.service" ];
6 socket = "/var/run/phpfpm/chloe-${app.environment}.sock"; 6 socket = "/var/run/phpfpm/chloe-${app.environment}.sock";
7 pool = '' 7 pool = ''
8 listen = ${socket}
9 user = ${apacheUser} 8 user = ${apacheUser}
10 group = ${apacheGroup} 9 group = ${apacheGroup}
11 listen.owner = ${apacheUser} 10 listen.owner = ${apacheUser}
diff --git a/modules/private/websites/chloe/integration.nix b/modules/private/websites/chloe/integration.nix
index 458e414..d49a85c 100644
--- a/modules/private/websites/chloe/integration.nix
+++ b/modules/private/websites/chloe/integration.nix
@@ -13,11 +13,15 @@ in {
13 13
14 config = lib.mkIf cfg.enable { 14 config = lib.mkIf cfg.enable {
15 secrets.keys = chloe.keys; 15 secrets.keys = chloe.keys;
16 services.myPhpfpm.serviceDependencies.chloe_dev = chloe.phpFpm.serviceDeps; 16 systemd.services.phpfpm-chloe_dev.after = lib.mkAfter chloe.phpFpm.serviceDeps;
17 services.myPhpfpm.poolConfigs.chloe_dev = chloe.phpFpm.pool; 17 systemd.services.phpfpm-chloe_dev.wants = chloe.phpFpm.serviceDeps;
18 services.myPhpfpm.poolPhpConfigs.chloe_dev = '' 18 services.phpfpm.pools.chloe_dev = {
19 extension=${pkgs.php}/lib/php/extensions/mysqli.so 19 listen = chloe.phpFpm.socket;
20 extraConfig = chloe.phpFpm.pool;
21 phpOptions = config.services.phpfpm.phpOptions + ''
22 extension=${pkgs.php}/lib/php/extensions/mysqli.so
20 ''; 23 '';
24 };
21 system.activationScripts.chloe_dev = chloe.activationScript; 25 system.activationScripts.chloe_dev = chloe.activationScript;
22 system.extraSystemBuilderCmds = '' 26 system.extraSystemBuilderCmds = ''
23 mkdir -p $out/webapps 27 mkdir -p $out/webapps
diff --git a/modules/private/websites/chloe/production.nix b/modules/private/websites/chloe/production.nix
index 0eafebd..d4b2299 100644
--- a/modules/private/websites/chloe/production.nix
+++ b/modules/private/websites/chloe/production.nix
@@ -15,11 +15,15 @@ in {
15 secrets.keys = chloe.keys; 15 secrets.keys = chloe.keys;
16 services.webstats.sites = [ { name = "osteopathe-cc.fr"; } ]; 16 services.webstats.sites = [ { name = "osteopathe-cc.fr"; } ];
17 17
18 services.myPhpfpm.serviceDependencies.chloe_prod = chloe.phpFpm.serviceDeps; 18 systemd.services.phpfpm-chloe_prod.after = lib.mkAfter chloe.phpFpm.serviceDeps;
19 services.myPhpfpm.poolConfigs.chloe_prod = chloe.phpFpm.pool; 19 systemd.services.phpfpm-chloe_prod.wants = chloe.phpFpm.serviceDeps;
20 services.myPhpfpm.poolPhpConfigs.chloe_prod = '' 20 services.phpfpm.pools.chloe_prod = {
21 extension=${pkgs.php}/lib/php/extensions/mysqli.so 21 listen = chloe.phpFpm.socket;
22 extraConfig = chloe.phpFpm.pool;
23 phpOptions = config.services.phpfpm.phpOptions + ''
24 extension=${pkgs.php}/lib/php/extensions/mysqli.so
22 ''; 25 '';
26 };
23 system.activationScripts.chloe_prod = chloe.activationScript; 27 system.activationScripts.chloe_prod = chloe.activationScript;
24 system.extraSystemBuilderCmds = '' 28 system.extraSystemBuilderCmds = ''
25 mkdir -p $out/webapps 29 mkdir -p $out/webapps
diff --git a/modules/private/websites/connexionswing/builder.nix b/modules/private/websites/connexionswing/builder.nix
index 1224420..b4b04cb 100644
--- a/modules/private/websites/connexionswing/builder.nix
+++ b/modules/private/websites/connexionswing/builder.nix
@@ -49,7 +49,6 @@ rec {
49 extension=${phpPackages.imagick}/lib/php/extensions/imagick.so 49 extension=${phpPackages.imagick}/lib/php/extensions/imagick.so
50 ''; 50 '';
51 pool = '' 51 pool = ''
52 listen = ${socket}
53 user = ${apacheUser} 52 user = ${apacheUser}
54 group = ${apacheGroup} 53 group = ${apacheGroup}
55 listen.owner = ${apacheUser} 54 listen.owner = ${apacheUser}
diff --git a/modules/private/websites/connexionswing/integration.nix b/modules/private/websites/connexionswing/integration.nix
index c3425bd..6570977 100644
--- a/modules/private/websites/connexionswing/integration.nix
+++ b/modules/private/websites/connexionswing/integration.nix
@@ -13,10 +13,14 @@ in {
13 13
14 config = lib.mkIf cfg.enable { 14 config = lib.mkIf cfg.enable {
15 secrets.keys = connexionswing.keys; 15 secrets.keys = connexionswing.keys;
16 services.myPhpfpm.preStart.connexionswing_dev = connexionswing.phpFpm.preStart; 16 systemd.services.phpfpm-connexionswing_dev.after = lib.mkAfter connexionswing.phpFpm.serviceDeps;
17 services.myPhpfpm.serviceDependencies.connexionswing_dev = connexionswing.phpFpm.serviceDeps; 17 systemd.services.phpfpm-connexionswing_dev.wants = connexionswing.phpFpm.serviceDeps;
18 services.myPhpfpm.poolConfigs.connexionswing_dev = connexionswing.phpFpm.pool; 18 systemd.services.phpfpm-connexionswing_dev.preStart = lib.mkAfter connexionswing.phpFpm.preStart;
19 services.myPhpfpm.poolPhpConfigs.connexionswing_dev = connexionswing.phpFpm.phpConfig; 19 services.phpfpm.pools.connexionswing_dev = {
20 listen = connexionswing.phpFpm.socket;
21 extraConfig = connexionswing.phpFpm.pool;
22 phpOptions = config.services.phpfpm.phpOptions + connexionswing.phpFpm.phpConfig;
23 };
20 system.activationScripts.connexionswing_dev = connexionswing.activationScript; 24 system.activationScripts.connexionswing_dev = connexionswing.activationScript;
21 system.extraSystemBuilderCmds = '' 25 system.extraSystemBuilderCmds = ''
22 mkdir -p $out/webapps 26 mkdir -p $out/webapps
diff --git a/modules/private/websites/connexionswing/production.nix b/modules/private/websites/connexionswing/production.nix
index 8f28f46..b51c549 100644
--- a/modules/private/websites/connexionswing/production.nix
+++ b/modules/private/websites/connexionswing/production.nix
@@ -15,10 +15,14 @@ in {
15 secrets.keys = connexionswing.keys; 15 secrets.keys = connexionswing.keys;
16 services.webstats.sites = [ { name = "connexionswing.com"; } ]; 16 services.webstats.sites = [ { name = "connexionswing.com"; } ];
17 17
18 services.myPhpfpm.preStart.connexionswing_prod = connexionswing.phpFpm.preStart; 18 systemd.services.phpfpm-connexionswing_prod.after = lib.mkAfter connexionswing.phpFpm.serviceDeps;
19 services.myPhpfpm.serviceDependencies.connexionswing_prod = connexionswing.phpFpm.serviceDeps; 19 systemd.services.phpfpm-connexionswing_prod.wants = connexionswing.phpFpm.serviceDeps;
20 services.myPhpfpm.poolConfigs.connexionswing_prod = connexionswing.phpFpm.pool; 20 systemd.services.phpfpm-connexionswing_prod.preStart = lib.mkAfter connexionswing.phpFpm.preStart;
21 services.myPhpfpm.poolPhpConfigs.connexionswing_prod = connexionswing.phpFpm.phpConfig; 21 services.phpfpm.pools.connexionswing_prod = {
22 listen = connexionswing.phpFpm.socket;
23 extraConfig = connexionswing.phpFpm.pool;
24 phpOptions = config.services.phpfpm.phpOptions + connexionswing.phpFpm.phpConfig;
25 };
22 system.activationScripts.connexionswing_prod = connexionswing.activationScript; 26 system.activationScripts.connexionswing_prod = connexionswing.activationScript;
23 system.extraSystemBuilderCmds = '' 27 system.extraSystemBuilderCmds = ''
24 mkdir -p $out/webapps 28 mkdir -p $out/webapps
diff --git a/modules/private/websites/florian/app.nix b/modules/private/websites/florian/app.nix
index 08506e1..905c66a 100644
--- a/modules/private/websites/florian/app.nix
+++ b/modules/private/websites/florian/app.nix
@@ -15,9 +15,10 @@ in {
15 15
16 config = lib.mkIf cfg.enable { 16 config = lib.mkIf cfg.enable {
17 secrets.keys = tellesflorian.keys; 17 secrets.keys = tellesflorian.keys;
18 services.myPhpfpm.preStart.tellesflorian_dev = tellesflorian.phpFpm.preStart; 18 systemd.services.phpfpm-tellesflorian_dev.after = lib.mkAfter tellesflorian.phpFpm.serviceDeps;
19 services.myPhpfpm.serviceDependencies.tellesflorian_dev = tellesflorian.phpFpm.serviceDeps; 19 systemd.services.phpfpm-tellesflorian_dev.wants = tellesflorian.phpFpm.serviceDeps;
20 services.myPhpfpm.poolConfigs.tellesflorian_dev = tellesflorian.phpFpm.pool; 20 systemd.services.phpfpm-tellesflorian_dev.preStart = lib.mkAfter tellesflorian.phpFpm.preStart;
21 services.phpfpm.poolConfigs.tellesflorian_dev = tellesflorian.phpFpm.pool;
21 system.activationScripts.tellesflorian_dev = tellesflorian.activationScript; 22 system.activationScripts.tellesflorian_dev = tellesflorian.activationScript;
22 system.extraSystemBuilderCmds = '' 23 system.extraSystemBuilderCmds = ''
23 mkdir -p $out/webapps 24 mkdir -p $out/webapps
diff --git a/modules/private/websites/immae/production.nix b/modules/private/websites/immae/production.nix
index 58cf048..c3cabb6 100644
--- a/modules/private/websites/immae/production.nix
+++ b/modules/private/websites/immae/production.nix
@@ -9,7 +9,7 @@ in {
9 config = lib.mkIf cfg.enable { 9 config = lib.mkIf cfg.enable {
10 services.webstats.sites = [ { name = "www.immae.eu"; } ]; 10 services.webstats.sites = [ { name = "www.immae.eu"; } ];
11 11
12 services.myPhpfpm.poolConfigs.immae = '' 12 services.phpfpm.poolConfigs.immae = ''
13 listen = /run/phpfpm/immae.sock 13 listen = /run/phpfpm/immae.sock
14 user = wwwrun 14 user = wwwrun
15 group = wwwrun 15 group = wwwrun
diff --git a/modules/private/websites/leila/production.nix b/modules/private/websites/leila/production.nix
index 1ce8eea..69c8c49 100644
--- a/modules/private/websites/leila/production.nix
+++ b/modules/private/websites/leila/production.nix
@@ -6,7 +6,7 @@ in {
6 options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's website in production"; 6 options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's website in production";
7 7
8 config = lib.mkIf cfg.enable { 8 config = lib.mkIf cfg.enable {
9 services.myPhpfpm.poolConfigs.leila = '' 9 services.phpfpm.poolConfigs.leila = ''
10 listen = /run/phpfpm/leila.sock 10 listen = /run/phpfpm/leila.sock
11 user = wwwrun 11 user = wwwrun
12 group = wwwrun 12 group = wwwrun
diff --git a/modules/private/websites/ludivinecassal/integration.nix b/modules/private/websites/ludivinecassal/integration.nix
index 0be067b..a53f1fe 100644
--- a/modules/private/websites/ludivinecassal/integration.nix
+++ b/modules/private/websites/ludivinecassal/integration.nix
@@ -14,9 +14,10 @@ in {
14 config = lib.mkIf cfg.enable { 14 config = lib.mkIf cfg.enable {
15 secrets.keys = ludivinecassal.keys; 15 secrets.keys = ludivinecassal.keys;
16 16
17 services.myPhpfpm.preStart.ludivinecassal_dev = ludivinecassal.phpFpm.preStart; 17 systemd.services.phpfpm-ludivinecassal_dev.after = lib.mkAfter ludivinecassal.phpFpm.serviceDeps;
18 services.myPhpfpm.serviceDependencies.ludivinecassal_dev = ludivinecassal.phpFpm.serviceDeps; 18 systemd.services.phpfpm-ludivinecassal_dev.wants = ludivinecassal.phpFpm.serviceDeps;
19 services.myPhpfpm.poolConfigs.ludivinecassal_dev = ludivinecassal.phpFpm.pool; 19 systemd.services.phpfpm-ludivinecassal_dev.preStart = lib.mkAfter ludivinecassal.phpFpm.preStart;
20 services.phpfpm.poolConfigs.ludivinecassal_dev = ludivinecassal.phpFpm.pool;
20 system.activationScripts.ludivinecassal_dev = ludivinecassal.activationScript; 21 system.activationScripts.ludivinecassal_dev = ludivinecassal.activationScript;
21 system.extraSystemBuilderCmds = '' 22 system.extraSystemBuilderCmds = ''
22 mkdir -p $out/webapps 23 mkdir -p $out/webapps
diff --git a/modules/private/websites/ludivinecassal/production.nix b/modules/private/websites/ludivinecassal/production.nix
index c5de698..8fe6812 100644
--- a/modules/private/websites/ludivinecassal/production.nix
+++ b/modules/private/websites/ludivinecassal/production.nix
@@ -15,9 +15,10 @@ in {
15 secrets.keys = ludivinecassal.keys; 15 secrets.keys = ludivinecassal.keys;
16 services.webstats.sites = [ { name = "ludivinecassal.com"; } ]; 16 services.webstats.sites = [ { name = "ludivinecassal.com"; } ];
17 17
18 services.myPhpfpm.preStart.ludivinecassal_prod = ludivinecassal.phpFpm.preStart; 18 systemd.services.phpfpm-ludivinecassal_prod.after = lib.mkAfter ludivinecassal.phpFpm.serviceDeps;
19 services.myPhpfpm.serviceDependencies.ludivinecassal_prod = ludivinecassal.phpFpm.serviceDeps; 19 systemd.services.phpfpm-ludivinecassal_prod.wants = ludivinecassal.phpFpm.serviceDeps;
20 services.myPhpfpm.poolConfigs.ludivinecassal_prod = ludivinecassal.phpFpm.pool; 20 systemd.services.phpfpm-ludivinecassal_prod.preStart = lib.mkAfter ludivinecassal.phpFpm.preStart;
21 services.phpfpm.poolConfigs.ludivinecassal_prod = ludivinecassal.phpFpm.pool;
21 system.activationScripts.ludivinecassal_prod = ludivinecassal.activationScript; 22 system.activationScripts.ludivinecassal_prod = ludivinecassal.activationScript;
22 system.extraSystemBuilderCmds = '' 23 system.extraSystemBuilderCmds = ''
23 mkdir -p $out/webapps 24 mkdir -p $out/webapps
diff --git a/modules/private/websites/naturaloutil/production.nix b/modules/private/websites/naturaloutil/production.nix
index b6cf069..2315b30 100644
--- a/modules/private/websites/naturaloutil/production.nix
+++ b/modules/private/websites/naturaloutil/production.nix
@@ -33,24 +33,27 @@ in {
33 ?> 33 ?>
34 ''; 34 '';
35 }]; 35 }];
36 services.myPhpfpm.serviceDependencies.jerome = [ "mysql.service" ]; 36 systemd.services.phpfpm-jerome.after = lib.mkAfter [ "mysql.service" ];
37 services.myPhpfpm.poolConfigs.jerome = '' 37 systemd.services.phpfpm-jerome.wants = [ "mysql.service" ];
38 listen = /run/phpfpm/naturaloutil.sock 38 services.phpfpm.pools.jerome = {
39 user = wwwrun 39 listen = "/run/phpfpm/naturaloutil.sock";
40 group = wwwrun 40 extraConfig = ''
41 listen.owner = wwwrun 41 user = wwwrun
42 listen.group = wwwrun 42 group = wwwrun
43 listen.owner = wwwrun
44 listen.group = wwwrun
43 45
44 pm = ondemand 46 pm = ondemand
45 pm.max_children = 5 47 pm.max_children = 5
46 pm.process_idle_timeout = 60 48 pm.process_idle_timeout = 60
47 49
48 env[BDD_CONNECT] = "/var/secrets/webapps/prod-naturaloutil" 50 env[BDD_CONNECT] = "/var/secrets/webapps/prod-naturaloutil"
49 php_admin_value[open_basedir] = "/var/secrets/webapps/prod-naturaloutil:${varDir}:/tmp" 51 php_admin_value[open_basedir] = "/var/secrets/webapps/prod-naturaloutil:${varDir}:/tmp"
50 ''; 52 '';
51 services.myPhpfpm.poolPhpConfigs.jerome = '' 53 phpOptions = config.services.phpfpm.phpOptions + ''
52 extension=${pkgs.php}/lib/php/extensions/mysqli.so 54 extension=${pkgs.php}/lib/php/extensions/mysqli.so
53 ''; 55 '';
56 };
54 services.websites.production.modules = adminer.apache.modules ++ [ "proxy_fcgi" ]; 57 services.websites.production.modules = adminer.apache.modules ++ [ "proxy_fcgi" ];
55 services.websites.production.vhostConfs.naturaloutil = { 58 services.websites.production.vhostConfs.naturaloutil = {
56 certName = "naturaloutil"; 59 certName = "naturaloutil";
diff --git a/modules/private/websites/piedsjaloux/integration.nix b/modules/private/websites/piedsjaloux/integration.nix
index 6249e85..83b428a 100644
--- a/modules/private/websites/piedsjaloux/integration.nix
+++ b/modules/private/websites/piedsjaloux/integration.nix
@@ -13,9 +13,10 @@ in {
13 13
14 config = lib.mkIf cfg.enable { 14 config = lib.mkIf cfg.enable {
15 secrets.keys = piedsjaloux.keys; 15 secrets.keys = piedsjaloux.keys;
16 services.myPhpfpm.preStart.piedsjaloux_dev = piedsjaloux.phpFpm.preStart; 16 systemd.services.phpfpm-piedsjaloux_dev.after = lib.mkAfter piedsjaloux.phpFpm.serviceDeps;
17 services.myPhpfpm.serviceDependencies.piedsjaloux_dev = piedsjaloux.phpFpm.serviceDeps; 17 systemd.services.phpfpm-piedsjaloux_dev.wants = piedsjaloux.phpFpm.serviceDeps;
18 services.myPhpfpm.poolConfigs.piedsjaloux_dev = piedsjaloux.phpFpm.pool; 18 systemd.services.phpfpm-piedsjaloux_dev.preStart = lib.mkAfter piedsjaloux.phpFpm.preStart;
19 services.phpfpm.poolConfigs.piedsjaloux_dev = piedsjaloux.phpFpm.pool;
19 system.activationScripts.piedsjaloux_dev = piedsjaloux.activationScript; 20 system.activationScripts.piedsjaloux_dev = piedsjaloux.activationScript;
20 system.extraSystemBuilderCmds = '' 21 system.extraSystemBuilderCmds = ''
21 mkdir -p $out/webapps 22 mkdir -p $out/webapps
diff --git a/modules/private/websites/piedsjaloux/production.nix b/modules/private/websites/piedsjaloux/production.nix
index afa1667..0efd56b 100644
--- a/modules/private/websites/piedsjaloux/production.nix
+++ b/modules/private/websites/piedsjaloux/production.nix
@@ -15,9 +15,10 @@ in {
15 secrets.keys = piedsjaloux.keys; 15 secrets.keys = piedsjaloux.keys;
16 services.webstats.sites = [ { name = "piedsjaloux.fr"; } ]; 16 services.webstats.sites = [ { name = "piedsjaloux.fr"; } ];
17 17
18 services.myPhpfpm.preStart.piedsjaloux_prod = piedsjaloux.phpFpm.preStart; 18 systemd.services.phpfpm-piedsjaloux_prod.after = lib.mkAfter piedsjaloux.phpFpm.serviceDeps;
19 services.myPhpfpm.serviceDependencies.piedsjaloux_prod = piedsjaloux.phpFpm.serviceDeps; 19 systemd.services.phpfpm-piedsjaloux_prod.wants = piedsjaloux.phpFpm.serviceDeps;
20 services.myPhpfpm.poolConfigs.piedsjaloux_prod = piedsjaloux.phpFpm.pool; 20 systemd.services.phpfpm-piedsjaloux_prod.preStart = lib.mkAfter piedsjaloux.phpFpm.preStart;
21 services.phpfpm.poolConfigs.piedsjaloux_prod = piedsjaloux.phpFpm.pool;
21 system.activationScripts.piedsjaloux_prod = piedsjaloux.activationScript; 22 system.activationScripts.piedsjaloux_prod = piedsjaloux.activationScript;
22 system.extraSystemBuilderCmds = '' 23 system.extraSystemBuilderCmds = ''
23 mkdir -p $out/webapps 24 mkdir -p $out/webapps