install -m 0750 -o ${apache.user} -g ${apache.group} -d ${varDir}/phpSessions
'';
};
- keys.tools-roundcube = {
- destDir = "/run/keys/webapps";
+ keys = [{
+ dest = "webapps/tools-roundcube";
user = apache.user;
group = apache.group;
permissions = "0400";
$config['temp_dir'] = '${varDir}/cache';
$config['mime_types'] = '${apacheHttpd}/conf/mime.types';
'';
- };
+ }];
webRoot = stdenv.mkDerivation rec {
version = "1.4-rc1";
name = "roundcubemail-${version}";
'';
installPhase = ''
cp -a . $out
- ln -s /run/keys/webapps/tools-roundcube $out/config/config.inc.php
+ ln -s /var/secrets/webapps/tools-roundcube $out/config/config.inc.php
${builtins.concatStringsSep "\n" (
lib.attrsets.mapAttrsToList (name: value: "ln -sf ${value} $out/plugins/${name}") plugins
)}
'';
};
phpFpm = rec {
- serviceDeps = [ "postgresql.service" "tools-roundcube-key.service" ];
+ serviceDeps = [ "postgresql.service" ];
basedir = builtins.concatStringsSep ":" (
- [ webRoot "/run/keys/webapps/tools-roundcube" varDir ]
+ [ webRoot "/var/secrets/webapps/tools-roundcube" varDir ]
++ lib.attrsets.mapAttrsToList (name: value: value) plugins
++ lib.attrsets.mapAttrsToList (name: value: value) skins);
phpConfig = ''