summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home-manager/mail.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-07-02 08:35:55 +0200
committermakefu <github@syntax-fehler.de>2020-07-02 08:35:55 +0200
commit884d557c755896d8b77c169148448614d8dc6638 (patch)
treeda9e90ee956163370cfdae05ebb5407ad7dd94ad /makefu/2configs/home-manager/mail.nix
parent9579a313a13e43decac20c9aba777604b4a0e691 (diff)
ma home-manager: add mailsync, navi
Diffstat (limited to 'makefu/2configs/home-manager/mail.nix')
-rw-r--r--makefu/2configs/home-manager/mail.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/makefu/2configs/home-manager/mail.nix b/makefu/2configs/home-manager/mail.nix
index ba29e86a4..3aa1814ca 100644
--- a/makefu/2configs/home-manager/mail.nix
+++ b/makefu/2configs/home-manager/mail.nix
@@ -1,5 +1,13 @@
+{ pkgs, ... }:
{
home-manager.users.makefu = {
+ home.packages= with pkgs;[ (pkgs.writers.writeDashBin "mailsync"''
+ ${imapfilter}/bin/imapfilter -t /etc/ssl/certs/ca-bundle.crt \
+ && ${isync}/bin/mbsync -a \
+ && ${libnotify}/bin/notify-send -t 1000000 -u critical 'Mail sync finished'
+
+ ''
+ )];
programs.mbsync.enable = true;
accounts.email.maildirBasePath = "/home/makefu/Mail";
accounts.email.certificatesFile = "/etc/ssl/certs/ca-certificates.crt";