add swipe action
This commit is contained in:
parent
0804af2655
commit
c5120dec62
4 changed files with 45 additions and 11 deletions
|
@ -103,11 +103,12 @@ in {
|
|||
|
||||
services.roundcube = {
|
||||
enable = true;
|
||||
package =
|
||||
pkgs.roundcube.withPlugins (plugins: [ plugins.persistent_login ]);
|
||||
package = pkgs.roundcube.withPlugins
|
||||
(plugins: [ plugins.persistent_login pkgs.v.roundcube-swipe ]);
|
||||
plugins = [
|
||||
"archive"
|
||||
"managesieve"
|
||||
"swipe"
|
||||
# "enigma"
|
||||
# "markasjunk"
|
||||
"persistent_login"
|
||||
|
@ -121,6 +122,19 @@ in {
|
|||
$config['smtp_host'] = "tls://${config.mailserver.fqdn}";
|
||||
$config['smtp_user'] = "%u";
|
||||
$config['smtp_pass'] = "%p";
|
||||
|
||||
$config['swipe_actions'] = [
|
||||
'messagelist' => [
|
||||
'left' => 'archive',
|
||||
'right' => 'archive',
|
||||
'down' => 'none'
|
||||
],
|
||||
'contactlist' => [
|
||||
'left' => 'none',
|
||||
'right' => 'none',
|
||||
'down' => 'none'
|
||||
]
|
||||
];
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ _final: prev: {
|
|||
|
||||
dnd-5e-latex-template = prev.callPackage ./dnd-5e-latex-template { };
|
||||
|
||||
roundcube-swipe = prev.callPackage ./roundcube-swipe { };
|
||||
|
||||
gitea-agatheme = prev.callPackage ./gitea-agatheme { };
|
||||
|
||||
# nix-shell -p "(vscode-with-extensions.override {vscodeExtensions = with vscode-extensions; [ jnoortheen.nix-ide ]; })" -I nixpkgs=.
|
||||
|
|
18
nixos/pkgs/roundcube-swipe/default.nix
Normal file
18
nixos/pkgs/roundcube-swipe/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ runCommand, fetchzip }:
|
||||
let
|
||||
roundcubePlugin = { pname, version, src }:
|
||||
|
||||
runCommand "roundcube-plugin-${pname}-${version}" { } ''
|
||||
mkdir -p $out/plugins/
|
||||
cp -r ${src} $out/plugins/${pname}
|
||||
'';
|
||||
in roundcubePlugin rec {
|
||||
pname = "roundcube-swipe";
|
||||
version = "0.5";
|
||||
|
||||
src = fetchzip {
|
||||
url =
|
||||
"https://github.com/johndoh/roundcube-swipe/archive/refs/tags/${version}.tar.gz";
|
||||
sha256 = "sha256-ExTnYE4uF8E+Fatz7fL+vVmxgLxawEI30Rw2uAWNCNw=";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue