nixos-config/programs/desktop/pim/email.nix
Charlotte 🦝 Delenk 31cb8c7ca9
All checks were successful
Hydra nixosConfigurations.oracle-installer Hydra build #27573 of nixos-config:pr618:nixosConfigurations.oracle-installer
Hydra nixosConfigurations.rainbow-resort Hydra build #27575 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.thinkrac Hydra build #27576 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra nixosConfigurations.pc-installer Hydra build #27574 of nixos-config:pr618:nixosConfigurations.pc-installer
limit pipeline depth
2024-11-25 20:33:10 +01:00

75 lines
1.8 KiB
Nix

{ pkgs, config, ... }:
{
accounts.email.accounts.lotte = {
address = "lotte@chir.rs";
gpg = {
encryptByDefault = true;
key = "B4E3D4801C49EC5E";
signByDefault = true;
};
imap = {
host = "imappro.zoho.eu";
port = 993;
};
imapnotify = {
enable = true;
onNotify = "${pkgs.isync}/bin/mbsync test-%s";
onNotifyPost = "${pkgs.notmuch}/bin/notmuch new && ${pkgs.libnotify}/bin/notify-send 'New mail arrived'";
};
mbsync = {
enable = true;
create = "both";
expunge = "both";
extraConfig.account = {
AuthMechs = "plain";
PipelineDepth = 128;
};
};
msmtp = {
enable = true;
extraConfig.auth = "plain";
};
neomutt.enable = true;
notmuch = {
enable = true;
neomutt = {
enable = true;
virtualMailboxes = [
{
name = "Inbox";
query = "tag:inbox";
}
];
};
};
passwordCommand = [
"${pkgs.coreutils}/bin/cat"
config.sops.secrets."accounts/email/accounts/lotte/password".path
];
realName = "Charlotte 🦝 Delenk";
smtp = {
host = "smtppro.zoho.eu";
port = 465;
};
thunderbird.enable = true;
userName = "lotte@chir.rs";
primary = true;
};
accounts.email.maildirBasePath = "Data/Maildir";
sops.secrets."accounts/email/accounts/lotte/password".sopsFile = ./secrets.yaml;
services.imapnotify.enable = true;
programs.mbsync.enable = true;
programs.notmuch.enable = true;
programs.neomutt.enable = true;
programs.thunderbird = {
enable = true;
profiles.default = {
isDefault = true;
withExternalGnupg = true;
};
};
systemd.user.services.imapnotify.Unit = {
Wants = [ "sops-nix.service" ];
After = [ "sops-nix.service" ];
};
}