From: Ismaƫl Bouya Date: Tue, 9 Apr 2019 23:57:17 +0000 (+0200) Subject: Add skins for roundcube X-Git-Tag: nur_publish~165 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=commitdiff_plain;h=8a2ccf8489ff7b89d2b531665f6d87b470a34972 Add skins for roundcube --- diff --git a/nixops/modules/websites/tools/tools/default.nix b/nixops/modules/websites/tools/tools/default.nix index b1fd8f2..8edbdd9 100644 --- a/nixops/modules/websites/tools/tools/default.nix +++ b/nixops/modules/websites/tools/tools/default.nix @@ -8,7 +8,10 @@ let inherit (mylibs) fetchedGithub fetchedGit; env = myconfig.env.tools.ttrss; }; - roundcubemail = pkgs.callPackage ./roundcubemail.nix { env = myconfig.env.tools.roundcubemail; }; + roundcubemail = pkgs.callPackage ./roundcubemail.nix { + inherit (mylibs) fetchedGithub; + env = myconfig.env.tools.roundcubemail; + }; rainloop = pkgs.callPackage ./rainloop.nix {}; kanboard = pkgs.callPackage ./kanboard.nix { inherit (mylibs) fetchedGithub; 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}