aboutsummaryrefslogtreecommitdiff
path: root/virtual/modules/websites/chloe.nix
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 /virtual/modules/websites/chloe.nix
parent3013caf18db83d43a1703b1a74cb484f70bab3a8 (diff)
downloadNix-86f6924f021869c1fd8e4e2a7930d50f04f921df.tar.gz
Nix-86f6924f021869c1fd8e4e2a7930d50f04f921df.tar.zst
Nix-86f6924f021869c1fd8e4e2a7930d50f04f921df.zip
Move websites to their own modules: php config and scripts
Diffstat (limited to 'virtual/modules/websites/chloe.nix')
-rw-r--r--virtual/modules/websites/chloe.nix9
1 files changed, 9 insertions, 0 deletions
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}