1 { lib, pkgs, config, myconfig, ... }:
3 aten = pkgs.callPackage ./builder.nix {
4 inherit (pkgs.webapps) aten;
5 config = myconfig.env.websites.aten.integration;
6 apacheUser = config.services.httpd.Inte.user;
7 apacheGroup = config.services.httpd.Inte.group;
10 cfg = config.myServices.websites.aten.integration;
12 options.myServices.websites.aten.integration.enable = lib.mkEnableOption "enable Aten's website in integration";
14 config = lib.mkIf cfg.enable {
15 services.phpApplication.aten_dev = let
16 app = pkgs.webapps.aten.override { environment = "dev"; };
18 websiteEnv = "integration";
19 httpdUser = config.services.httpd.Inte.user;
20 httpdGroup = config.services.httpd.Inte.group;
21 inherit (app) webRoot varDir;
23 serviceDeps = [ "postgresql.service" ];
25 "APP_ENV=${app.environment} ./bin/console --env=${app.environment} cache:clear --no-warmup"
28 "${config.secrets.location}/webapps/${app.environment}-aten"
30 webappName = "aten_dev";
33 secrets.keys = aten.keys;
34 services.phpfpm.poolConfigs.aten_dev = aten.phpFpm.pool;
35 services.websites.env.integration.vhostConfs.aten = {
38 hosts = [ "dev.aten.pro" ];
39 root = aten.apache.root;
40 extraConfig = [ aten.apache.vhostConf ];