1 { lib, pkgs, config, mylibs, ... }:
3 adminer = pkgs.callPackage ../commons/adminer.nix {};
5 tellesflorian = pkgs.callPackage ./tellesflorian.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
6 tellesflorian_dev = tellesflorian { environment = "dev"; };
8 cfg = config.services.myWebsites.TellesFlorian;
10 options.services.myWebsites.TellesFlorian = {
12 enable = lib.mkEnableOption "enable Florian Telles's website in integration";
16 config = lib.mkIf cfg.integration.enable {
17 security.acme.certs."eldiron".extraDomains."app.tellesflorian.com" = null;
18 services.myPhpfpm.poolConfigs.tellesflorian_dev = tellesflorian_dev.phpFpm.pool;
19 system.activationScripts.tellesflorian_dev = tellesflorian_dev.activationScript;
20 services.myWebsites.integration.modules = adminer.apache.modules ++ tellesflorian_dev.apache.modules;
21 services.myWebsites.integration.vhostConfs.tellesflorian = {
23 hosts = ["app.tellesflorian.com" ];
24 root = tellesflorian_dev.webRoot;
26 tellesflorian_dev.apache.vhostConf
27 adminer.apache.vhostConf