Replace alot with astroid and add some notmuch config

This commit is contained in:
Evie Litherland-Smith 2023-09-14 11:56:26 +01:00
parent 3fe286c2a0
commit 0b18a7860b

View file

@ -1,16 +1,13 @@
{ pkgs, hostName, ... }: { pkgs, hostName, ... }:
{ {
accounts.email.accounts = let accounts.email.accounts = let realName = "Evelyn Litherland-Smith";
realName = "Evelyn Litherland-Smith";
notmuch.enable = true;
in { in {
proton = let proton = let
host = "127.0.0.1"; host = "127.0.0.1";
tls.enable = false; tls.enable = false;
in rec { in rec {
inherit realName notmuch; inherit realName;
maildir.path = "Proton"; maildir.path = "Proton";
imap = { imap = {
inherit host tls; inherit host tls;
@ -39,9 +36,11 @@
auth = "login"; auth = "login";
}; };
}; };
notmuch.enable = true;
astroid.enable = true;
}; };
icloud = rec { icloud = rec {
inherit realName notmuch; inherit realName;
maildir.path = "iCloud"; maildir.path = "iCloud";
imap.host = "imap.mail.me.com"; imap.host = "imap.mail.me.com";
smtp.host = "smtp.mail.me.com"; smtp.host = "smtp.mail.me.com";
@ -55,12 +54,14 @@
subFolders = "Verbatim"; subFolders = "Verbatim";
}; };
msmtp.enable = true; msmtp.enable = true;
notmuch.enable = true;
astroid.enable = true;
}; };
ukaea = let ukaea = let
host = "127.0.0.1"; host = "127.0.0.1";
tls.enable = false; tls.enable = false;
in rec { in rec {
inherit realName notmuch; inherit realName;
maildir.path = "UKAEA"; maildir.path = "UKAEA";
imap = { imap = {
inherit host tls; inherit host tls;
@ -87,19 +88,26 @@
auth = "login"; auth = "login";
}; };
}; };
notmuch.enable = true;
astroid.enable = true;
}; };
}; };
home.packages = with pkgs; [ protonmail-bridge davmail vdirsyncer ]; home.packages = with pkgs; [ protonmail-bridge davmail vdirsyncer ];
programs = { programs = {
mbsync = { enable = true; }; mbsync.enable = true;
msmtp = { enable = true; }; msmtp.enable = true;
# vdirsyncer = { enable = true; }; # vdirsyncer = { enable = true; };
notmuch = { notmuch = {
enable = true; enable = true;
maildir.synchronizeFlags = true; maildir.synchronizeFlags = true;
new.ignore = [ ".nnmaildir" ];
}; };
afew.enable = true; afew.enable = true;
alot.enable = true; astroid = {
enable = true;
pollScript = "mbsync -a";
externalEditor = "emacsclient -q -a 'emacs' -c %1";
};
}; };
xdg.configFile."vdirsyncer/config".text = xdg.configFile."vdirsyncer/config".text =
import ./config/vdirsyncer.nix { inherit pkgs; }; import ./config/vdirsyncer.nix { inherit pkgs; };