From 8a2ccf8489ff7b89d2b531665f6d87b470a34972 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 10 Apr 2019 01:57:17 +0200 Subject: [PATCH] Add skins for roundcube --- nixops/modules/websites/tools/tools/default.nix | 5 ++++- nixops/modules/websites/tools/tools/roundcubemail.nix | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) 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} -- 2.41.0