electra/mail: custom_from roundcube plugin

This commit is contained in:
Gabriel Fontes
2022-09-10 14:06:55 -03:00
parent 7f54c740bd
commit e74f58c393
6 changed files with 23 additions and 2 deletions
+1
View File
@@ -5,5 +5,6 @@
# Scoped packages
vimPlugins = import ./pkgs/vim-plugins { inherit pkgs; };
wallpapers = import ./pkgs/wallpapers { inherit pkgs; };
roundcubePlugins = import ./pkgs/roundcube-plugins { inherit pkgs; };
# Import packages to top-level
} // (import ./pkgs/top-level { inherit pkgs; })
+3 -1
View File
@@ -1,4 +1,4 @@
{ config, inputs, ... }:
{ config, pkgs, inputs, ... }:
{
imports = [
inputs.nixos-mailserver.nixosModules.mailserver
@@ -73,11 +73,13 @@
# Webmail
services.roundcube = rec {
enable = true;
package = pkgs.roundcube.withPlugins (p: [ p.carddav p.custom_from ]);
hostName = "mail.m7.rs";
extraConfig = ''
$config['smtp_server'] = "tls://${hostName}";
$config['smtp_user'] = "%u";
$config['smtp_user'] = "%p";
$config['plugins'] = [ "carddav", "custom_from" ];
'';
};
}
+1
View File
@@ -6,6 +6,7 @@ let
# Modifies existing packages
modifications = final: prev: {
# === Scoped packages ===
roundcubePlugins = prev.roundcubePlugins // final.callPackage ../pkgs/roundcube-plugins { };
vimPlugins = prev.vimPlugins // {
vim-numbertoggle = prev.vimPlugins.vim-numbertoggle.overrideAttrs
(oldAttrs: rec {
@@ -0,0 +1,14 @@
{ roundcubePlugins, fetchFromGitHub }:
roundcubePlugins.roundcubePlugin rec {
pname = "custom_from";
version = "1.6.5";
src = fetchFromGitHub {
owner = "r3c";
repo = pname;
rev = version;
sha256 = "sha256-fCQbDf8GcHAgo8nft4uYHZDk45VZDY+fgyVrYjGLuu4=";
};
}
+3
View File
@@ -0,0 +1,3 @@
{ pkgs }: {
custom_from = pkgs.callPackage ./custom_from { };
}
+1 -1
View File
@@ -7,7 +7,7 @@ stdenv.mkDerivation {
version = "0.1";
src = fetchFromSourcehut {
owner = "~misterio";
repo = name;
repo = pname;
rev = "c761072952bba8bdc21b906fdc941b9ae5ac5432";
sha256 = "sha256-SLMAZy9UxQOA+2YhnryJ5ZvMXOf/Bxv0E8gIbP32XfE=";
};