1 { lib, pkgs, config, myconfig, mylibs, ... }:
3 adminer = pkgs.callPackage ../commons/adminer.nix {};
5 tellesflorian = pkgs.callPackage ./tellesflorian.nix { inherit (mylibs) fetchedGitPrivate; };
6 tellesflorian_dev = tellesflorian {
7 config = myconfig.env.websites.tellesflorian.integration;
10 cfg = config.services.myWebsites.TellesFlorian;
12 options.services.myWebsites.TellesFlorian = {
14 enable = lib.mkEnableOption "enable Florian Telles's website in integration";
18 config = lib.mkIf cfg.integration.enable {
19 deployment.keys = tellesflorian_dev.keys;
20 security.acme.certs."eldiron".extraDomains."app.tellesflorian.com" = null;
21 services.myPhpfpm.poolConfigs.tellesflorian_dev = tellesflorian_dev.phpFpm.pool;
22 system.activationScripts.tellesflorian_dev = tellesflorian_dev.activationScript;
23 system.extraSystemBuilderCmds = ''
25 ln -s ${tellesflorian_dev.webRoot} $out/webapps/${tellesflorian_dev.apache.webappName}
27 services.myWebsites.integration.modules = adminer.apache.modules ++ tellesflorian_dev.apache.modules;
28 services.myWebsites.integration.vhostConfs.tellesflorian = {
30 hosts = ["app.tellesflorian.com" ];
31 root = tellesflorian_dev.apache.root;
33 tellesflorian_dev.apache.vhostConf
34 adminer.apache.vhostConf