Signed-off-by: Christoph Schmatzler <christoph@schmatzler.com>
This commit is contained in:
2026-03-01 17:39:05 +00:00
parent 8ed58c39d3
commit a95188d218
4 changed files with 66 additions and 1 deletions

33
profiles/himalaya.nix Normal file
View File

@@ -0,0 +1,33 @@
{pkgs, ...}: {
programs.himalaya = {
enable = true;
package = pkgs.writeShellApplication {
name = "himalaya";
runtimeInputs = [pkgs.himalaya];
text = ''
exec env RUST_LOG="warn,imap_codec::response=error" ${pkgs.himalaya}/bin/himalaya "$@"
'';
};
};
accounts.email = {
accounts.icloud = {
primary = true;
address = "christoph@schmatzler.com";
userName = "christoph.schmatzler@icloud.com";
realName = "Christoph Schmatzler";
passwordCommand = ["cat" "/run/secrets/tahani-email-password"];
imap = {
host = "imap.mail.me.com";
port = 993;
tls.enable = true;
};
smtp = {
host = "smtp.mail.me.com";
port = 587;
tls.useStartTls = true;
};
himalaya.enable = true;
};
};
}