add swipe action
This commit is contained in:
parent
71fa982a3f
commit
7242ccf9ae
4 changed files with 45 additions and 11 deletions
18
flake.lock
18
flake.lock
|
@ -665,11 +665,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686778999,
|
"lastModified": 1686852570,
|
||||||
"narHash": "sha256-3qBtOJdznerw33LgwJTSUL6u8/j1Ot83fcc0f6oHKmk=",
|
"narHash": "sha256-Hzufya/HxjSliCwpuLJCGY0WCQajzcpsnhFGa+TCkCM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "e0034971f9def16bbc32124147787bc0f09f0e59",
|
"rev": "4e09c83255c5b23d58714d56672d3946faf1bcef",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1179,11 +1179,11 @@
|
||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686807758,
|
"lastModified": 1686894171,
|
||||||
"narHash": "sha256-0Kg2VqEZzrwZubTrtj+fu77F/IftkDH6ZESwe4ZXkfw=",
|
"narHash": "sha256-QyEdSgyOdSGM3kS6N/r+0i47VbeZI41OZik37ipkQBs=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "53bdfe0d57ba919516d99906d18db3a6f96b53f2",
|
"rev": "1c14e580cdf9e778d76a15ff13d6d302da628a30",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1549,11 +1549,11 @@
|
||||||
"nixpkgs": "nixpkgs_8"
|
"nixpkgs": "nixpkgs_8"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1683797625,
|
"lastModified": 1686833044,
|
||||||
"narHash": "sha256-Fgu9rxFziIJ47NiSdEUGO0PSwN9KTwW9lN0iT3uBpYI=",
|
"narHash": "sha256-pl5qH72KNOgS9ivj06Nh272HTPd5cYPSL768RsYiLDg=",
|
||||||
"owner": "serokell",
|
"owner": "serokell",
|
||||||
"repo": "vault-secrets",
|
"repo": "vault-secrets",
|
||||||
"rev": "9b23805fd05bf3b291d6f80ddfeb9a97318b6547",
|
"rev": "30c5b1c532d10e40c8a196995acee675d7d731f2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -103,11 +103,12 @@ in {
|
||||||
|
|
||||||
services.roundcube = {
|
services.roundcube = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package =
|
package = pkgs.roundcube.withPlugins
|
||||||
pkgs.roundcube.withPlugins (plugins: [ plugins.persistent_login ]);
|
(plugins: [ plugins.persistent_login pkgs.v.roundcube-swipe ]);
|
||||||
plugins = [
|
plugins = [
|
||||||
"archive"
|
"archive"
|
||||||
"managesieve"
|
"managesieve"
|
||||||
|
"swipe"
|
||||||
# "enigma"
|
# "enigma"
|
||||||
# "markasjunk"
|
# "markasjunk"
|
||||||
"persistent_login"
|
"persistent_login"
|
||||||
|
@ -121,6 +122,19 @@ in {
|
||||||
$config['smtp_host'] = "tls://${config.mailserver.fqdn}";
|
$config['smtp_host'] = "tls://${config.mailserver.fqdn}";
|
||||||
$config['smtp_user'] = "%u";
|
$config['smtp_user'] = "%u";
|
||||||
$config['smtp_pass'] = "%p";
|
$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 { };
|
dnd-5e-latex-template = prev.callPackage ./dnd-5e-latex-template { };
|
||||||
|
|
||||||
|
roundcube-swipe = prev.callPackage ./roundcube-swipe { };
|
||||||
|
|
||||||
gitea-agatheme = prev.callPackage ./gitea-agatheme { };
|
gitea-agatheme = prev.callPackage ./gitea-agatheme { };
|
||||||
|
|
||||||
# nix-shell -p "(vscode-with-extensions.override {vscodeExtensions = with vscode-extensions; [ jnoortheen.nix-ide ]; })" -I nixpkgs=.
|
# 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…
Reference in a new issue