Commit 201f360a7034

Vincent Demeester <vincent@sbr.pm>
2025-01-22 11:28:32
users/vincent: use lieer for gmail accounts
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent debbd47
Changed files (1)
users
users/vincent/default.nix
@@ -96,9 +96,6 @@ in
             oathToolkit
             p7zip
           ];
-          programs.mu = {
-            enable = true;
-          };
           home.file."bin/msmtp" = {
             text = ''
               #!${pkgs.stdenv.shell}
@@ -108,13 +105,15 @@ in
             executable = true;
           };
           programs.mbsync.enable = true;
+          programs.lieer.enable = true;
           programs.aerc.enable = true;
           programs.msmtp.enable = true;
+          programs.mu.enable = true;
+          programs.notmuch.enable = true;
           accounts.email = {
             maildirBasePath = "desktop/mails";
             accounts = {
               "icloud" = {
-                primary = true;
                 address = "vincent@demeester.fr";
                 userName = "vdemeester@icloud.com";
                 realName = "Vincent Demeester";
@@ -147,49 +146,24 @@ in
                 passwordCommand = "${pkgs.passage}/bin/passage show mails/gmail/vinc.demeester";
                 imap.host = "imap.gmail.com";
                 smtp.host = "smtp.gmail.com";
-                # mbsync = {
-                #   enable = true;
-                #   create = "both";
-                #   expunge = "both";
-                #   patterns = [ "*" "![Gmail]*" "[Gmail]/All Mail" "[Gmail]Sent Mail" "[Gmail]Starred" "[Gmail]Trash" ];
-                #   extraConfig = {
-                #     channel = {
-                #       Sync = "All";
-                #     };
-                #     account = {
-                #       Timeout = 120;
-                #       PipelineDepth = 1;
-                #     };
-                #   };
-                # };
+                flavor = "gmail.com";
                 lieer.enable = true;
                 mu.enable = true;
+                notmuch.enable = true;
                 msmtp.enable = true;
               };
               "redhat" = {
+                primary = true; # because it's work, but it's really just for notmuch
                 address = "vdemeest@redhat.com";
                 userName = "vdemeest@redhat.com";
                 realName = "Vincent Demeester";
                 passwordCommand = "${pkgs.passage}/bin/passage show mails/gmail/redhat";
                 imap.host = "imap.gmail.com";
                 smtp.host = "smtp.gmail.com";
-                # mbsync = {
-                #   enable = true;
-                #   create = "both";
-                #   expunge = "both";
-                #   patterns = [ "*" "![Gmail]*" "[Gmail]/All Mail" "[Gmail]Sent Mail" "[Gmail]Starred" "[Gmail]Trash" ];
-                #   extraConfig = {
-                #     channel = {
-                #       Sync = "All";
-                #     };
-                #     account = {
-                #       Timeout = 120;
-                #       PipelineDepth = 1;
-                #     };
-                #   };
-                # };
+                flavor = "gmail.com";
                 lieer.enable = true;
                 mu.enable = true;
+                notmuch.enable = true;
                 msmtp.enable = true;
               };
             };