X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Ftools%2Froundcubemail.nix;h=9939b77508fd56c1927537036bc03117ebf8688d;hb=8db8e666707a0e51af9353c76c5863e1a5482ed5;hp=5fc34126e9fb4606aa19b6aa89e65d3ce6220f60;hpb=32c84ff89c2b8931f58cea63961a178a9b1d0efe;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/tools/tools/roundcubemail.nix b/nixops/modules/websites/tools/tools/roundcubemail.nix index 5fc3412..9939b77 100644 --- a/nixops/modules/websites/tools/tools/roundcubemail.nix +++ b/nixops/modules/websites/tools/tools/roundcubemail.nix @@ -78,8 +78,8 @@ let 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"; @@ -136,7 +136,7 @@ let $config['temp_dir'] = '${varDir}/cache'; $config['mime_types'] = '${apacheHttpd}/conf/mime.types'; ''; - }; + }]; webRoot = stdenv.mkDerivation rec { version = "1.4-rc1"; name = "roundcubemail-${version}"; @@ -154,7 +154,7 @@ let ''; 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 )} @@ -184,9 +184,9 @@ let ''; }; 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 = ''