aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-10 00:58:47 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-10 00:58:47 +0100
commit86f6924f021869c1fd8e4e2a7930d50f04f921df (patch)
treea50140956ef504c29883ab3148147e5a5b928ca9
parent3013caf18db83d43a1703b1a74cb484f70bab3a8 (diff)
downloadNix-86f6924f021869c1fd8e4e2a7930d50f04f921df.tar.gz
Nix-86f6924f021869c1fd8e4e2a7930d50f04f921df.tar.zst
Nix-86f6924f021869c1fd8e4e2a7930d50f04f921df.zip
Move websites to their own modules: php config and scripts
-rw-r--r--virtual/eldiron.nix20
-rw-r--r--virtual/modules/websites/aten.nix9
-rw-r--r--virtual/modules/websites/chloe.nix9
-rw-r--r--virtual/modules/websites/connexionswing.nix9
-rw-r--r--virtual/modules/websites/ludivine.nix10
-rw-r--r--virtual/modules/websites/piedsjaloux.nix9
6 files changed, 46 insertions, 20 deletions
diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix
index 5dafe6e..7189c39 100644
--- a/virtual/eldiron.nix
+++ b/virtual/eldiron.nix
@@ -133,16 +133,6 @@
133 ''; 133 '';
134 poolConfigs = { 134 poolConfigs = {
135 adminer = mypkgs.adminer.phpFpm.pool; 135 adminer = mypkgs.adminer.phpFpm.pool;
136 connexionswing_dev = mypkgs.connexionswing_dev.phpFpm.pool;
137 connexionswing_prod = mypkgs.connexionswing_prod.phpFpm.pool;
138 ludivinecassal_dev = mypkgs.ludivinecassal_dev.phpFpm.pool;
139 ludivinecassal_prod = mypkgs.ludivinecassal_prod.phpFpm.pool;
140 piedsjaloux_dev = mypkgs.piedsjaloux_dev.phpFpm.pool;
141 piedsjaloux_prod = mypkgs.piedsjaloux_prod.phpFpm.pool;
142 chloe_dev = mypkgs.chloe_dev.phpFpm.pool;
143 chloe_prod = mypkgs.chloe_prod.phpFpm.pool;
144 aten_dev = mypkgs.aten_dev.phpFpm.pool;
145 aten_prod = mypkgs.aten_prod.phpFpm.pool;
146 nextcloud = mypkgs.nextcloud.phpFpm.pool; 136 nextcloud = mypkgs.nextcloud.phpFpm.pool;
147 mantisbt = mypkgs.mantisbt.phpFpm.pool; 137 mantisbt = mypkgs.mantisbt.phpFpm.pool;
148 ttrss = mypkgs.ttrss.phpFpm.pool; 138 ttrss = mypkgs.ttrss.phpFpm.pool;
@@ -152,16 +142,6 @@
152 }; 142 };
153 143
154 system.activationScripts = { 144 system.activationScripts = {
155 connexionswing_dev = mypkgs.connexionswing_dev.activationScript;
156 connexionswing_prod = mypkgs.connexionswing_prod.activationScript;
157 ludivinecassal_dev = mypkgs.ludivinecassal_dev.activationScript;
158 ludivinecassal_prod = mypkgs.ludivinecassal_prod.activationScript;
159 piedsjaloux_dev = mypkgs.piedsjaloux_dev.activationScript;
160 piedsjaloux_prod = mypkgs.piedsjaloux_prod.activationScript;
161 chloe_dev = mypkgs.chloe_dev.activationScript;
162 chloe_prod = mypkgs.chloe_prod.activationScript;
163 aten_dev = mypkgs.aten_dev.activationScript;
164 aten_prod = mypkgs.aten_prod.activationScript;
165 nextcloud = mypkgs.nextcloud.activationScript; 145 nextcloud = mypkgs.nextcloud.activationScript;
166 ttrss = mypkgs.ttrss.activationScript; 146 ttrss = mypkgs.ttrss.activationScript;
167 roundcubemail = mypkgs.roundcubemail.activationScript; 147 roundcubemail = mypkgs.roundcubemail.activationScript;
diff --git a/virtual/modules/websites/aten.nix b/virtual/modules/websites/aten.nix
index 7567289..88a9857 100644
--- a/virtual/modules/websites/aten.nix
+++ b/virtual/modules/websites/aten.nix
@@ -1,5 +1,9 @@
1{ lib, pkgs, config, mylibs, ... }: 1{ lib, pkgs, config, mylibs, ... }:
2let 2let
3 aten = pkgs.callPackage ../../packages/aten.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
4 aten_dev = aten { environment = "dev"; };
5 aten_prod = aten { environment = "prod"; };
6
3 cfg = config.services.myWebsites.Aten; 7 cfg = config.services.myWebsites.Aten;
4in { 8in {
5 options.services.myWebsites.Aten = { 9 options.services.myWebsites.Aten = {
@@ -19,9 +23,14 @@ in {
19 "www.aten.pro" = null; 23 "www.aten.pro" = null;
20 }; 24 };
21 }; 25 };
26
27 services.phpfpm.poolConfigs.aten_prod = aten_prod.phpFpm.pool;
28 system.activationScripts.aten_prod = aten_prod.activationScript;
22 }) 29 })
23 (lib.mkIf cfg.integration.enable { 30 (lib.mkIf cfg.integration.enable {
24 security.acme.certs."eldiron".extraDomains."dev.aten.pro" = null; 31 security.acme.certs."eldiron".extraDomains."dev.aten.pro" = null;
32 services.phpfpm.poolConfigs.aten_dev = aten_dev.phpFpm.pool;
33 system.activationScripts.aten_dev = aten_dev.activationScript;
25 }) 34 })
26 ]; 35 ];
27} 36}
diff --git a/virtual/modules/websites/chloe.nix b/virtual/modules/websites/chloe.nix
index 2c0c65d..9b5c5ca 100644
--- a/virtual/modules/websites/chloe.nix
+++ b/virtual/modules/websites/chloe.nix
@@ -1,5 +1,9 @@
1{ lib, pkgs, config, mylibs, ... }: 1{ lib, pkgs, config, mylibs, ... }:
2let 2let
3 chloe = pkgs.callPackage ../../packages/chloe.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
4 chloe_dev = chloe { environment = "dev"; };
5 chloe_prod = chloe { environment = "prod"; };
6
3 cfg = config.services.myWebsites.Chloe; 7 cfg = config.services.myWebsites.Chloe;
4in { 8in {
5 options.services.myWebsites.Chloe = { 9 options.services.myWebsites.Chloe = {
@@ -19,9 +23,14 @@ in {
19 "www.osteopathe-cc.fr" = null; 23 "www.osteopathe-cc.fr" = null;
20 }; 24 };
21 }; 25 };
26
27 services.phpfpm.poolConfigs.chloe_prod = chloe_prod.phpFpm.pool;
28 system.activationScripts.chloe_prod = chloe_prod.activationScript;
22 }) 29 })
23 (lib.mkIf cfg.integration.enable { 30 (lib.mkIf cfg.integration.enable {
24 security.acme.certs."eldiron".extraDomains."chloe.immae.eu" = null; 31 security.acme.certs."eldiron".extraDomains."chloe.immae.eu" = null;
32 services.phpfpm.poolConfigs.chloe_dev = chloe_dev.phpFpm.pool;
33 system.activationScripts.chloe_dev = chloe_dev.activationScript;
25 }) 34 })
26 ]; 35 ];
27} 36}
diff --git a/virtual/modules/websites/connexionswing.nix b/virtual/modules/websites/connexionswing.nix
index ed6799f..e4b9c0e 100644
--- a/virtual/modules/websites/connexionswing.nix
+++ b/virtual/modules/websites/connexionswing.nix
@@ -1,5 +1,9 @@
1{ lib, pkgs, config, mylibs, ... }: 1{ lib, pkgs, config, mylibs, ... }:
2let 2let
3 connexionswing = pkgs.callPackage ../../packages/connexionswing.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
4 connexionswing_dev = connexionswing { environment = "dev"; };
5 connexionswing_prod = connexionswing { environment = "prod"; };
6
3 cfg = config.services.myWebsites.Connexionswing; 7 cfg = config.services.myWebsites.Connexionswing;
4in { 8in {
5 options.services.myWebsites.Connexionswing = { 9 options.services.myWebsites.Connexionswing = {
@@ -21,10 +25,15 @@ in {
21 "www.sandetludo.com" = null; 25 "www.sandetludo.com" = null;
22 }; 26 };
23 }; 27 };
28
29 services.phpfpm.poolConfigs.connexionswing_prod = connexionswing_prod.phpFpm.pool;
30 system.activationScripts.connexionswing_prod = connexionswing_prod.activationScript;
24 }) 31 })
25 (lib.mkIf cfg.integration.enable { 32 (lib.mkIf cfg.integration.enable {
26 security.acme.certs."eldiron".extraDomains."sandetludo.immae.eu" = null; 33 security.acme.certs."eldiron".extraDomains."sandetludo.immae.eu" = null;
27 security.acme.certs."eldiron".extraDomains."connexionswing.immae.eu" = null; 34 security.acme.certs."eldiron".extraDomains."connexionswing.immae.eu" = null;
35 services.phpfpm.poolConfigs.connexionswing_dev = connexionswing_dev.phpFpm.pool;
36 system.activationScripts.connexionswing_dev = connexionswing_dev.activationScript;
28 }) 37 })
29 ]; 38 ];
30} 39}
diff --git a/virtual/modules/websites/ludivine.nix b/virtual/modules/websites/ludivine.nix
index 5729c09..9d6b693 100644
--- a/virtual/modules/websites/ludivine.nix
+++ b/virtual/modules/websites/ludivine.nix
@@ -1,5 +1,9 @@
1{ lib, pkgs, config, mylibs, ... }: 1{ lib, pkgs, config, mylibs, ... }:
2let 2let
3 ludivinecassal = pkgs.callPackage ../../packages/ludivinecassal.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
4 ludivinecassal_dev = ludivinecassal { environment = "dev"; };
5 ludivinecassal_prod = ludivinecassal { environment = "prod"; };
6
3 cfg = config.services.myWebsites.Ludivine; 7 cfg = config.services.myWebsites.Ludivine;
4in { 8in {
5 options.services.myWebsites.Ludivine = { 9 options.services.myWebsites.Ludivine = {
@@ -19,9 +23,15 @@ in {
19 "www.ludivinecassal.com" = null; 23 "www.ludivinecassal.com" = null;
20 }; 24 };
21 }; 25 };
26
27 services.phpfpm.poolConfigs.ludivinecassal_prod = ludivinecassal_prod.phpFpm.pool;
28 system.activationScripts.ludivinecassal_prod = ludivinecassal_prod.activationScript;
22 }) 29 })
23 (lib.mkIf cfg.integration.enable { 30 (lib.mkIf cfg.integration.enable {
24 security.acme.certs."eldiron".extraDomains."ludivine.immae.eu" = null; 31 security.acme.certs."eldiron".extraDomains."ludivine.immae.eu" = null;
32
33 services.phpfpm.poolConfigs.ludivinecassal_dev = ludivinecassal_dev.phpFpm.pool;
34 system.activationScripts.ludivinecassal_dev = ludivinecassal_dev.activationScript;
25 }) 35 })
26 ]; 36 ];
27} 37}
diff --git a/virtual/modules/websites/piedsjaloux.nix b/virtual/modules/websites/piedsjaloux.nix
index 849df63..f2b17ad 100644
--- a/virtual/modules/websites/piedsjaloux.nix
+++ b/virtual/modules/websites/piedsjaloux.nix
@@ -1,5 +1,9 @@
1{ lib, pkgs, config, mylibs, ... }: 1{ lib, pkgs, config, mylibs, ... }:
2let 2let
3 piedsjaloux = pkgs.callPackage ../../packages/piedsjaloux.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
4 piedsjaloux_dev = piedsjaloux { environment = "dev"; };
5 piedsjaloux_prod = piedsjaloux { environment = "prod"; };
6
3 cfg = config.services.myWebsites.PiedsJaloux; 7 cfg = config.services.myWebsites.PiedsJaloux;
4in { 8in {
5 options.services.myWebsites.PiedsJaloux = { 9 options.services.myWebsites.PiedsJaloux = {
@@ -19,9 +23,14 @@ in {
19 "www.piedsjaloux.fr" = null; 23 "www.piedsjaloux.fr" = null;
20 }; 24 };
21 }; 25 };
26
27 services.phpfpm.poolConfigs.piedsjaloux_prod = piedsjaloux_prod.phpFpm.pool;
28 system.activationScripts.piedsjaloux_prod = piedsjaloux_prod.activationScript;
22 }) 29 })
23 (lib.mkIf cfg.integration.enable { 30 (lib.mkIf cfg.integration.enable {
24 security.acme.certs."eldiron".extraDomains."piedsjaloux.immae.eu" = null; 31 security.acme.certs."eldiron".extraDomains."piedsjaloux.immae.eu" = null;
32 services.phpfpm.poolConfigs.piedsjaloux_dev = piedsjaloux_dev.phpFpm.pool;
33 system.activationScripts.piedsjaloux_dev = piedsjaloux_dev.activationScript;
25 }) 34 })
26 ]; 35 ];
27} 36}