dendritic migration
dendritic migration
This commit is contained in:
54
modules/email.nix
Normal file
54
modules/email.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{...}: {
|
||||
den.aspects.email.homeManager = {pkgs, ...}: {
|
||||
programs.himalaya = {
|
||||
enable = true;
|
||||
package =
|
||||
pkgs.writeShellApplication {
|
||||
name = "himalaya";
|
||||
runtimeInputs = [pkgs.bash pkgs.coreutils pkgs.himalaya];
|
||||
text = ''
|
||||
exec env RUST_LOG="warn,imap_codec::response=error" ${pkgs.himalaya}/bin/himalaya "$@"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
programs.mbsync.enable = true;
|
||||
services.mbsync = {
|
||||
enable = true;
|
||||
frequency = "*:0/5";
|
||||
};
|
||||
|
||||
accounts.email = {
|
||||
accounts."christoph@schmatzler.com" = {
|
||||
primary = true;
|
||||
maildir.path = "christoph@schmatzler.com";
|
||||
address = "christoph@schmatzler.com";
|
||||
userName = "christoph.schmatzler@icloud.com";
|
||||
realName = "Christoph Schmatzler";
|
||||
passwordCommand = ["cat" "/run/secrets/tahani-email-password"];
|
||||
folders = {
|
||||
inbox = "INBOX";
|
||||
drafts = "Drafts";
|
||||
sent = "Sent Messages";
|
||||
trash = "Deleted Messages";
|
||||
};
|
||||
smtp = {
|
||||
host = "smtp.mail.me.com";
|
||||
port = 587;
|
||||
tls.useStartTls = true;
|
||||
};
|
||||
himalaya.enable = true;
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "both";
|
||||
expunge = "both";
|
||||
};
|
||||
imap = {
|
||||
host = "imap.mail.me.com";
|
||||
port = 993;
|
||||
tls.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user