set up neverest imap-to-maildir sync, switch himalaya to maildir backend
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
../../profiles/fzf.nix
|
||||
../../profiles/git.nix
|
||||
../../profiles/himalaya.nix
|
||||
../../profiles/neverest.nix
|
||||
../../profiles/home.nix
|
||||
../../profiles/jjui.nix
|
||||
../../profiles/jujutsu.nix
|
||||
|
||||
@@ -11,16 +11,18 @@
|
||||
};
|
||||
|
||||
accounts.email = {
|
||||
accounts.icloud = {
|
||||
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"];
|
||||
imap = {
|
||||
host = "imap.mail.me.com";
|
||||
port = 993;
|
||||
tls.enable = true;
|
||||
folders = {
|
||||
inbox = "INBOX";
|
||||
drafts = "Drafts";
|
||||
sent = "Sent Messages";
|
||||
trash = "Deleted Messages";
|
||||
};
|
||||
smtp = {
|
||||
host = "smtp.mail.me.com";
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
}:
|
||||
with lib; let
|
||||
tomlFormat = pkgs.formats.toml {};
|
||||
account = config.accounts.email.accounts.icloud;
|
||||
account = config.accounts.email.accounts."christoph@schmatzler.com";
|
||||
maildirPath = account.maildir.absPath;
|
||||
in {
|
||||
home.packages = [pkgs.neverest];
|
||||
|
||||
xdg.configFile."neverest/config.toml".source = tomlFormat.generate "neverest-config.toml" {
|
||||
accounts.icloud = {
|
||||
accounts."christoph@schmatzler.com" = {
|
||||
default = true;
|
||||
|
||||
folder.filters = "all";
|
||||
|
||||
Reference in New Issue
Block a user