set up neverest imap-to-maildir sync, switch himalaya to maildir backend

This commit is contained in:
2026-03-01 18:29:41 +00:00
parent 4f1d2fead7
commit b0d086a0e7
3 changed files with 10 additions and 7 deletions

View File

@@ -30,6 +30,7 @@
../../profiles/fzf.nix ../../profiles/fzf.nix
../../profiles/git.nix ../../profiles/git.nix
../../profiles/himalaya.nix ../../profiles/himalaya.nix
../../profiles/neverest.nix
../../profiles/home.nix ../../profiles/home.nix
../../profiles/jjui.nix ../../profiles/jjui.nix
../../profiles/jujutsu.nix ../../profiles/jujutsu.nix

View File

@@ -11,16 +11,18 @@
}; };
accounts.email = { accounts.email = {
accounts.icloud = { accounts."christoph@schmatzler.com" = {
primary = true; primary = true;
maildir.path = "christoph@schmatzler.com";
address = "christoph@schmatzler.com"; address = "christoph@schmatzler.com";
userName = "christoph.schmatzler@icloud.com"; userName = "christoph.schmatzler@icloud.com";
realName = "Christoph Schmatzler"; realName = "Christoph Schmatzler";
passwordCommand = ["cat" "/run/secrets/tahani-email-password"]; passwordCommand = ["cat" "/run/secrets/tahani-email-password"];
imap = { folders = {
host = "imap.mail.me.com"; inbox = "INBOX";
port = 993; drafts = "Drafts";
tls.enable = true; sent = "Sent Messages";
trash = "Deleted Messages";
}; };
smtp = { smtp = {
host = "smtp.mail.me.com"; host = "smtp.mail.me.com";

View File

@@ -6,13 +6,13 @@
}: }:
with lib; let with lib; let
tomlFormat = pkgs.formats.toml {}; tomlFormat = pkgs.formats.toml {};
account = config.accounts.email.accounts.icloud; account = config.accounts.email.accounts."christoph@schmatzler.com";
maildirPath = account.maildir.absPath; maildirPath = account.maildir.absPath;
in { in {
home.packages = [pkgs.neverest]; home.packages = [pkgs.neverest];
xdg.configFile."neverest/config.toml".source = tomlFormat.generate "neverest-config.toml" { xdg.configFile."neverest/config.toml".source = tomlFormat.generate "neverest-config.toml" {
accounts.icloud = { accounts."christoph@schmatzler.com" = {
default = true; default = true;
folder.filters = "all"; folder.filters = "all";