🧹 remove mbsync

nixos
Moritz Böhme 2022-07-30 16:31:50 +02:00
parent bfec7305ee
commit 42b9de28b8
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 1 additions and 49 deletions

View File

@ -44,55 +44,7 @@ in
}; };
# Email Applications # Email Applications
home-manager.users.moritz = { home-manager.users.moritz.home.packages = with pkgs; [ thunderbird ];
home.packages = with pkgs; [ thunderbird ];
programs = {
msmtp.enable = true;
mbsync.enable = true;
};
services.mbsync = {
enable = true;
frequency = "*:0/15";
preExec = "${pkgs.isync}/bin/mbsync -Ha";
postExec = "${pkgs.mu}/bin/mu index -m ${mailDirectory}";
};
accounts.email = {
maildirBasePath = mailDirectory;
accounts.default = {
address = email;
userName = email;
flavor = "plain";
primary = true;
passwordCommand = "${pkgs.coreutils}/bin/cat /run/agenix/email";
mbsync = {
enable = true;
create = "both";
expunge = "both";
patterns = [ "*" ];
};
realName = name;
msmtp.enable = true;
imap = {
host = "127.0.0.1";
port = 1143;
tls = {
enable = true;
useStartTls = true;
certificatesFile = "/home/moritz/.config/protonmail/bridge/cert.pem";
};
};
smtp = {
host = "127.0.0.1";
port = 1025;
tls = {
enable = true;
useStartTls = true;
certificatesFile = "/home/moritz/.config/protonmail/bridge/cert.pem";
};
};
};
};
};
networking.firewall.allowedTCPPorts = [ 33728 1025 1143 ]; networking.firewall.allowedTCPPorts = [ 33728 1025 1143 ];
}; };
} }