Hi everyone. I’m looking to migrate my couple of years old roundcube setup to NixOS. I’ve managed to import and upgrade the database but what I’m stuck on is: modules. On my old Roundcube setup I had a lot of those and I’m not certain how to get this done on NixOS.
We have services.roundcube.plugins with the description:
List of roundcube plugins to enable. Currently, only those directly shipped with Roundcube are supported.
There also is services.roundcube.package with the following description:
The package which contains roundcube’s sources. Can be overriden to create an environment which contains roundcube and third-party plugins.
Hi @hugosenari thanks for your suggestions. I finally got around to testing this.
I tried your example but it told me that pkgs.roundcubePlugin doesn’t exist, so I assumed you meant pkgs.roundcubePlugins, but when using that I am getting the following error:
building the system configuration...
warning: Git tree '/home/markvd/user/mozart' is dirty
error: attempt to call something which is not a function but a set
at /nix/store/i5z77x6xa1n77zi07jxdd93v1jxlr5c6-source/nixos/service/roundcube.nix:5:19:
4| let
5| custom_from = pkgs.roundcubePlugins rec {
| ^
6| pname = "custom_from";
(use '--show-trace' to show detailed location information)
Any idea how I should handle this? EDIT: I figured out that it works when I use pkgs.roundcubePlugins.roundcubePlugin. With that, this works very well. Much thanks!