ADD : mails.nix - conf for mbsync/notmuch/msmtp

alacritty
Alexandre LUCAZEAU 2021-12-17 15:12:33 +01:00
parent 6b52fb70ed
commit 2cf429ec1d
4 changed files with 75 additions and 1 deletions

27
.mbsyncrc Normal file
View File

@ -0,0 +1,27 @@
IMAPAccount DRI
Host imap.dri.fr
User 1847_alexandre
PassCmd "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.password-store/mails.gpg"
SSLType None
IMAPStore DRI-remote
Account DRI
MaildirStore DRI-local
Subfolders Verbatim
Path ~/Mails/DRI/
Inbox ~/Mails/DRI/INBOX
Channel DRI-inbox
Master :DRI-remote:
Slave :DRI-local:
Patterns *
Sync All
SyncState *
Create Both
Channel DRI-archives
Master :DRI-local:archives
Slave :DRI-remote:"INBOX/archives"
Patterns *
Sync All

View File

@ -4,6 +4,7 @@
./gnupg.nix
./git.nix
./variables.nix
./mails.nix
];
home.keyboard = {
layout = "fr";

46
nixpkgs/mails.nix Normal file
View File

@ -0,0 +1,46 @@
{ pkgs, ... }:
{
programs.mbsync.enable = true;
programs.msmtp.enable = true;
programs.notmuch = {
enable = true;
hooks = {
preNew = "mbsync --all";
};
};
accounts.email = {
accounts.dri = {
address = "alexandre@dri.fr";
gpg = {
key = "464CAA7A718D4CE84F03DFFE8B2EB421411BF613";
signByDefault = true ;
};
imap = {
host = "imap.dri.fr";
tls = {
enable = false;
};
};
mbsync = {
enable = true;
create = "maildir";
};
msmtp.enable = true;
notmuch.enable = true;
primary = true;
realName = "LUCAZEAU Alexandre";
userName = "1847_alexandre";
signature = {
text = ''
Avant Vente
'';
showsignature = "append";
};
passwordCommand = "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.password-store/mails.gpg";
smtp = {
host = "smtp.dri.fr";
};
};
};
}

View File

@ -9,7 +9,7 @@
neomutt
alacritty
notmuch
#isync
isync
zathura
rofi
pdfarranger