1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/mail.nix

59 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2019-04-20 09:08:39 +02:00
{ config, pkgs, ... }:
{
environment.systemPackages = [
pkgs.notmuch
pkgs.offlineimap
pkgs.msmtp
pkgs.neomutt
];
home-manager.users.me = {
2019-08-18 19:16:56 +02:00
programs.astroid = {
enable = true;
externalEditor = "urxvt -embed %3 -e nvim %1";
pollScript = "offlineimap";
};
2019-04-20 09:08:39 +02:00
accounts.email.maildirBasePath = "${config.users.users.me.home}/mail";
2019-08-18 19:16:56 +02:00
accounts.email.accounts.amroplay = {
astroid.enable = true;
address = "amroplay@gmail.com";
userName = "amroplay";
flavor = "gmail.com";
realName = config.niveum.user.name;
msmtp.enable = true;
notmuch.enable = true;
offlineimap = {
enable = true;
postSyncHookCommand = "notmuch new";
};
};
2019-04-20 09:08:39 +02:00
accounts.email.accounts.hu-berlin = {
2019-08-18 19:16:56 +02:00
astroid.enable = true;
2019-04-20 09:08:39 +02:00
address = "meinhark@hu-berlin.de";
userName = "meinhark";
2019-08-18 19:16:56 +02:00
realName = config.niveum.user.name;
2019-04-20 09:08:39 +02:00
imap = {
host = "mailbox.cms.hu-berlin.de";
port = 993;
tls.enable = true;
};
smtp = {
host = "mailhost.cms.hu-berlin.de";
port = 25;
tls.enable = true;
};
msmtp.enable = true;
notmuch.enable = true;
offlineimap = {
enable = true;
postSyncHookCommand = "notmuch new";
};
primary = true;
};
2019-08-18 19:16:56 +02:00
programs.offlineimap.enable = true;
2019-04-20 09:08:39 +02:00
};
}