blob: 3a6d1522103c269cabc55c00651d57fa6e7fd389 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib, pkgs, config, myconfig, ... }:
let
adminer = pkgs.callPackage ../commons/adminer.nix {};
tellesflorian = pkgs.callPackage ./builder_app.nix {
inherit (pkgs.webapps) tellesflorian;
config = myconfig.env.websites.tellesflorian.integration;
apacheUser = config.services.httpd.Inte.user;
apacheGroup = config.services.httpd.Inte.group;
};
cfg = config.myServices.websites.florian.app;
in {
options.myServices.websites.florian.app.enable = lib.mkEnableOption "enable Florian's app in integration";
config = lib.mkIf cfg.enable {
secrets.keys = tellesflorian.keys;
systemd.services.phpfpm-tellesflorian_dev.after = lib.mkAfter tellesflorian.phpFpm.serviceDeps;
systemd.services.phpfpm-tellesflorian_dev.wants = tellesflorian.phpFpm.serviceDeps;
systemd.services.phpfpm-tellesflorian_dev.preStart = lib.mkAfter tellesflorian.phpFpm.preStart;
services.phpfpm.poolConfigs.tellesflorian_dev = tellesflorian.phpFpm.pool;
system.activationScripts.tellesflorian_dev = tellesflorian.activationScript;
myServices.websites.webappDirs."${tellesflorian.apache.webappName}" = tellesflorian.app.webRoot;
services.websites.integration.modules = adminer.apache.modules ++ tellesflorian.apache.modules;
services.websites.integration.vhostConfs.tellesflorian = {
certName = "eldiron";
addToCerts = true;
hosts = ["app.tellesflorian.com" ];
root = tellesflorian.apache.root;
extraConfig = [
tellesflorian.apache.vhostConf
adminer.apache.vhostConf
];
};
};
}
|