diff options
Diffstat (limited to 'modules/private/websites/ludivinecassal/integration.nix')
-rw-r--r-- | modules/private/websites/ludivinecassal/integration.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/private/websites/ludivinecassal/integration.nix b/modules/private/websites/ludivinecassal/integration.nix new file mode 100644 index 00000000..ed0dc9fe --- /dev/null +++ b/modules/private/websites/ludivinecassal/integration.nix | |||
@@ -0,0 +1,32 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | ||
2 | let | ||
3 | ludivinecassal = pkgs.callPackage ./builder.nix { | ||
4 | inherit (pkgs.webapps) ludivinecassal; | ||
5 | config = myconfig.env.websites.ludivinecassal.integration; | ||
6 | apacheUser = config.services.httpd.Inte.user; | ||
7 | apacheGroup = config.services.httpd.Inte.group; | ||
8 | }; | ||
9 | |||
10 | cfg = config.myServices.websites.ludivinecassal.integration; | ||
11 | in { | ||
12 | options.myServices.websites.ludivinecassal.integration.enable = lib.mkEnableOption "enable Ludivine's website in integration"; | ||
13 | |||
14 | config = lib.mkIf cfg.enable { | ||
15 | secrets.keys = ludivinecassal.keys; | ||
16 | |||
17 | systemd.services.phpfpm-ludivinecassal_dev.after = lib.mkAfter ludivinecassal.phpFpm.serviceDeps; | ||
18 | systemd.services.phpfpm-ludivinecassal_dev.wants = ludivinecassal.phpFpm.serviceDeps; | ||
19 | systemd.services.phpfpm-ludivinecassal_dev.preStart = lib.mkAfter ludivinecassal.phpFpm.preStart; | ||
20 | services.phpfpm.poolConfigs.ludivinecassal_dev = ludivinecassal.phpFpm.pool; | ||
21 | system.activationScripts.ludivinecassal_dev = ludivinecassal.activationScript; | ||
22 | myServices.websites.webappDirs."${ludivinecassal.apache.webappName}" = ludivinecassal.app.webRoot; | ||
23 | services.websites.integration.modules = ludivinecassal.apache.modules; | ||
24 | services.websites.integration.vhostConfs.ludivine = { | ||
25 | certName = "eldiron"; | ||
26 | addToCerts = true; | ||
27 | hosts = [ "ludivine.immae.eu" ]; | ||
28 | root = ludivinecassal.apache.root; | ||
29 | extraConfig = [ ludivinecassal.apache.vhostConf ]; | ||
30 | }; | ||
31 | }; | ||
32 | } | ||