diff options
Diffstat (limited to 'virtual/modules/websites/chloe.nix')
-rw-r--r-- | virtual/modules/websites/chloe.nix | 9 |
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, ... }: |
2 | let | 2 | let |
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; |
4 | in { | 8 | in { |
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 | } |