mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
electra/mail: custom_from roundcube plugin
This commit is contained in:
@@ -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; })
|
||||
|
||||
@@ -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" ];
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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=";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{ pkgs }: {
|
||||
custom_from = pkgs.callPackage ./custom_from { };
|
||||
}
|
||||
@@ -7,7 +7,7 @@ stdenv.mkDerivation {
|
||||
version = "0.1";
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~misterio";
|
||||
repo = name;
|
||||
repo = pname;
|
||||
rev = "c761072952bba8bdc21b906fdc941b9ae5ac5432";
|
||||
sha256 = "sha256-SLMAZy9UxQOA+2YhnryJ5ZvMXOf/Bxv0E8gIbP32XfE=";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user