X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Ftools%2Froundcubemail.nix;h=58a1be51e49ec254f892f41871fc303742515230;hb=8a2ccf8489ff7b89d2b531665f6d87b470a34972;hp=c0a1125835cfc72c6e5141862fa4b7a59cc95615;hpb=a95ab089420d6edf24f22500dabf7876d329dc91;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 c0a1125..58a1be5 100644 --- a/nixops/modules/websites/tools/tools/roundcubemail.nix +++ b/nixops/modules/websites/tools/tools/roundcubemail.nix @@ -1,7 +1,8 @@ -{ lib, env, writeText, stdenv, fetchurl }: +{ lib, env, writeText, stdenv, fetchurl, fetchedGithub }: let roundcubemail = let plugins = {}; + skins = {}; in rec { varDir = "/var/lib/roundcubemail"; activationScript = { @@ -59,6 +60,9 @@ let ${builtins.concatStringsSep "\n" ( lib.attrsets.mapAttrsToList (name: value: "ln -sf ${value} $out/plugins/${name}") plugins )} + ${builtins.concatStringsSep "\n" ( + lib.attrsets.mapAttrsToList (name: value: "ln -sf ${value} $out/skins/${name}") skins + )} ''; }; apache = rec { @@ -84,7 +88,8 @@ let phpFpm = rec { basedir = builtins.concatStringsSep ":" ( [ webRoot config varDir ] - ++ lib.attrsets.mapAttrsToList (name: value: value) plugins); + ++ lib.attrsets.mapAttrsToList (name: value: value) plugins + ++ lib.attrsets.mapAttrsToList (name: value: value) skins); socket = "/var/run/phpfpm/roundcubemail.sock"; pool = '' listen = ${socket}