feat(home): Add email module and configure first account

This commit is contained in:
Alexander Kobjolke 2024-05-19 01:03:20 +02:00
parent 5ce6f7b688
commit 1ec7d39b30
2 changed files with 40 additions and 0 deletions

View file

@ -22,6 +22,7 @@
./services/network-manager
./services/syncthing
./services/git-sync
./modules/email.nix
];
home = {

View file

@ -0,0 +1,39 @@
{
config,
lib,
pkgs,
...
}:
{
programs.mbsync.enable = true;
programs.msmtp.enable = true;
programs.notmuch = {
enable = true;
hooks.preNew = "mbsync --all";
};
accounts.email = {
accounts.failco = {
address = "me@failco.de";
gpg = {
key = "F2132F0C63730C6BC42BCC2A41A6D13FECA21280";
signByDefault = true;
};
imap.host = "thrall.failco.de";
mbsync = {
enable = true;
create = "maildir";
};
msmtp.enable = true;
notmuch.enable = true;
primary = true;
realName = "Alexander Kobjolke";
passwordCommand = "gopass --nosync show -o eMail/failco.de/me@failco.de";
smtp = {
host = "thrall.failco.de";
};
userName = "me@failco.de";
};
};
}