nixos/home-manager/software/email/default.nix

37 lines
853 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
accounts.email.accounts."personal" = {
address = "andreas@zweili.ch";
realName = "Andreas Zweili";
userName = "andreas@zweili.ch";
primary = true;
2022-04-16 15:47:08 +02:00
passwordCommand = "cat /home/andreas/.nixos/secrets/passwords/personal_email.key";
aliases = [
"andreas.zweili@gmail.com"
"andreas@2li.ch"
];
2022-04-23 00:19:18 +02:00
msmtp.enable = true;
mu.enable = true;
offlineimap = {
enable = true;
extraConfig = {
account = { autorefresh = 15; };
local = { sync_deletes = true; };
};
};
imap = {
host = "mail.zweili.org";
port = 993;
tls.enable = true;
};
smtp = {
2022-04-22 18:55:25 +02:00
host = "mail.zweili.org";
2022-10-17 13:46:07 +02:00
port = 465;
tls.enable = true;
};
};
programs.mu.enable = true;
programs.offlineimap.enable = true;
2022-04-23 00:19:18 +02:00
programs.msmtp.enable = true;
}