-{ lib, pkgs, config, myconfig, ... }:
+{ lib, pkgs, config, ... }:
let
roundcubemail = pkgs.callPackage ./roundcubemail.nix {
inherit (pkgs.webapps) roundcubemail roundcubemail-plugins roundcubemail-skins;
- env = myconfig.env.tools.roundcubemail;
+ env = config.myEnv.tools.roundcubemail;
};
rainloop = pkgs.callPackage ./rainloop.nix {};
cfg = config.myServices.websites.tools.email;
extraConfig = roundcubemail.phpFpm.pool;
phpOptions = config.services.phpfpm.phpOptions + roundcubemail.phpFpm.phpConfig;
};
- services.phpfpm.poolConfigs = {
- rainloop = rainloop.phpFpm.pool;
+ services.phpfpm.pools.rainloop = {
+ listen = rainloop.phpFpm.socket;
+ extraConfig = rainloop.phpFpm.pool;
};
system.activationScripts = {
roundcubemail = roundcubemail.activationScript;