2021-06-13 12:05:16 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
home-manager.users.cyryl = {...}: {
|
|
|
|
accounts.email.accounts.cyplo = {
|
|
|
|
primary = true;
|
2021-06-13 17:43:51 +01:00
|
|
|
address = "cyplo@cyplo.dev";
|
2021-06-13 12:05:16 +01:00
|
|
|
aliases = [ "cyplo@cyplo.net" ];
|
|
|
|
realName = "Cyryl Płotnicki";
|
|
|
|
userName = "cyplo";
|
2021-06-13 17:43:51 +01:00
|
|
|
imap = {
|
|
|
|
host = "127.0.0.1";
|
|
|
|
port = 1143;
|
|
|
|
tls.enable = false;
|
|
|
|
};
|
|
|
|
smtp = {
|
|
|
|
host = "127.0.0.1";
|
|
|
|
port = 1025;
|
|
|
|
tls.enable = false;
|
|
|
|
};
|
|
|
|
notmuch.enable = true;
|
|
|
|
astroid.enable = true;
|
2021-08-01 07:58:21 +01:00
|
|
|
neomutt.enable = true;
|
2021-06-13 17:43:51 +01:00
|
|
|
msmtp.enable = true;
|
|
|
|
passwordCommand = "${pkgs.pass}/bin/pass proton-bridge";
|
2021-08-01 07:58:21 +01:00
|
|
|
offlineimap.enable = true;
|
2021-06-13 17:43:51 +01:00
|
|
|
folders = {
|
2021-07-03 13:15:42 +01:00
|
|
|
drafts = "Drafts";
|
|
|
|
inbox = "INBOX";
|
|
|
|
sent = "Sent";
|
|
|
|
trash = "Trash";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-06-13 17:43:51 +01:00
|
|
|
programs.msmtp.enable = true;
|
2021-08-01 07:58:21 +01:00
|
|
|
programs.offlineimap.enable = true;
|
2021-06-13 17:43:51 +01:00
|
|
|
programs.notmuch = {
|
|
|
|
enable = true;
|
2021-08-01 07:58:21 +01:00
|
|
|
hooks.preNew = "${pkgs.offlineimap}/bin/offlineimap -o";
|
|
|
|
};
|
|
|
|
programs.alot = {
|
|
|
|
enable = true;
|
2021-06-13 17:43:51 +01:00
|
|
|
};
|
2021-08-01 07:58:21 +01:00
|
|
|
|
2021-06-13 17:43:51 +01:00
|
|
|
programs.astroid = {
|
|
|
|
enable = true;
|
|
|
|
pollScript = "${pkgs.notmuch}/bin/notmuch new";
|
|
|
|
};
|
2021-08-01 07:58:21 +01:00
|
|
|
programs.neomutt = {
|
2021-06-13 17:43:51 +01:00
|
|
|
enable = true;
|
2021-06-13 12:05:16 +01:00
|
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
hydroxide
|
|
|
|
];
|
|
|
|
|
|
|
|
systemd.user.services."hydroxide" = {
|
|
|
|
Unit.Description = "Bridge to ProtonMail";
|
|
|
|
Install.WantedBy = [ "default.target" ];
|
|
|
|
Service.ExecStart = "${pkgs.hydroxide}/bin/hydroxide serve";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|