]>
Commit | Line | Data |
---|---|---|
f8026b6e IB |
1 | { lib, pkgs, config, myconfig, ... }: |
2 | let | |
3 | connexionswing = pkgs.callPackage ./builder.nix { | |
4 | inherit (pkgs.webapps) connexionswing; | |
5 | config = myconfig.env.websites.connexionswing.integration; | |
6 | apacheUser = config.services.httpd.Inte.user; | |
7 | apacheGroup = config.services.httpd.Inte.group; | |
8 | }; | |
9 | ||
10 | cfg = config.myServices.websites.connexionswing.integration; | |
11 | in { | |
12 | options.myServices.websites.connexionswing.integration.enable = lib.mkEnableOption "enable Connexionswing's website in integration"; | |
13 | ||
14 | config = lib.mkIf cfg.enable { | |
15 | secrets.keys = connexionswing.keys; | |
16 | services.myPhpfpm.preStart.connexionswing_dev = connexionswing.phpFpm.preStart; | |
17 | services.myPhpfpm.serviceDependencies.connexionswing_dev = connexionswing.phpFpm.serviceDeps; | |
18 | services.myPhpfpm.poolConfigs.connexionswing_dev = connexionswing.phpFpm.pool; | |
19 | services.myPhpfpm.poolPhpConfigs.connexionswing_dev = connexionswing.phpFpm.phpConfig; | |
20 | system.activationScripts.connexionswing_dev = connexionswing.activationScript; | |
21 | system.extraSystemBuilderCmds = '' | |
22 | mkdir -p $out/webapps | |
23 | ln -s ${connexionswing.app.webRoot} $out/webapps/${connexionswing.apache.webappName} | |
24 | ''; | |
25 | services.websites.integration.modules = connexionswing.apache.modules; | |
26 | services.websites.integration.vhostConfs.connexionswing = { | |
27 | certName = "eldiron"; | |
28 | addToCerts = true; | |
29 | hosts = ["connexionswing.immae.eu" "sandetludo.immae.eu" ]; | |
30 | root = connexionswing.apache.root; | |
31 | extraConfig = [ connexionswing.apache.vhostConf ]; | |
32 | }; | |
33 | }; | |
34 | } | |
35 |