From 86f6924f021869c1fd8e4e2a7930d50f04f921df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 10 Jan 2019 00:58:47 +0100 Subject: Move websites to their own modules: php config and scripts --- virtual/modules/websites/aten.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'virtual/modules/websites/aten.nix') 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 @@ { lib, pkgs, config, mylibs, ... }: let + aten = pkgs.callPackage ../../packages/aten.nix { inherit (mylibs) checkEnv fetchedGitPrivate; }; + aten_dev = aten { environment = "dev"; }; + aten_prod = aten { environment = "prod"; }; + cfg = config.services.myWebsites.Aten; in { options.services.myWebsites.Aten = { @@ -19,9 +23,14 @@ in { "www.aten.pro" = null; }; }; + + services.phpfpm.poolConfigs.aten_prod = aten_prod.phpFpm.pool; + system.activationScripts.aten_prod = aten_prod.activationScript; }) (lib.mkIf cfg.integration.enable { security.acme.certs."eldiron".extraDomains."dev.aten.pro" = null; + services.phpfpm.poolConfigs.aten_dev = aten_dev.phpFpm.pool; + system.activationScripts.aten_dev = aten_dev.activationScript; }) ]; } -- cgit v1.2.3