about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-27 17:16:52 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-29 13:47:01 +0200
commitf3899661f22e07853931206361142d953920a3ef (patch)
tree2b3feecda7144244e1d962fe9efddfc7f3636c1d
parentModule: Email: Mutt: Add extraConfig (diff)
downloadnixos-config-f3899661f22e07853931206361142d953920a3ef.tar.gz
nixos-config-f3899661f22e07853931206361142d953920a3ef.tar.bz2
nixos-config-f3899661f22e07853931206361142d953920a3ef.zip
Module: Email: Remove notmuch
-rw-r--r--modules/email/default.nix9
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/email/default.nix b/modules/email/default.nix
index d79e88a..daf18c2 100644
--- a/modules/email/default.nix
+++ b/modules/email/default.nix
@@ -1,17 +1,13 @@
 { config, pkgs, lib, secrets, ... }:
 {
   services = {
-    mbsync = {
-      enable = true;
-      postExec = "${pkgs.notmuch}/bin/notmuch new";
-    };
+    mbsync.enable = true;
     imapnotify.enable = true;
   };
 
   programs = {
     mbsync.enable = true;
     msmtp.enable = true;
-    notmuch.enable = true;
     neomutt = {
       enable = true;
       sidebar.enable = true;
@@ -43,12 +39,11 @@
           boxes = [ "Inbox" ];
           onNotifyPost = {
             mail = ''
-              ${pkgs.notmuch}/bin/notmuch new && ${pkgs.libnotify}/bin/notify-send "New mail arrived."
+              ${pkgs.libnotify}/bin/notify-send "New mail arrived."
             '';
           };
         };
         msmtp.enable = true;
-        notmuch.enable = true;
         mbsync = {
           enable = true;
           create = "both";