~cyplo/dotfiles

6755b25706aa4b2c04f1d750f10c58c91798184e — Cyryl Płotnicki 2 months ago 6dd936b
add mail sync
1 files changed, 16 insertions(+), 4 deletions(-)

M nixos/email-accounts.nix
M nixos/email-accounts.nix => nixos/email-accounts.nix +16 -4
@@ 26,10 26,20 @@
        create = "maildir";
      };
      folders = {
        drafts = "drafts";
        inbox = "inbox";
        sent = "sent";
        trash = "trash";
        drafts = "Drafts";
        inbox = "INBOX";
        sent = "Sent";
        trash = "Trash";
      };
    };

    services = {
      imapnotify.enable = true;

      mbsync = {
        enable = true;
        frequency = "hourly";
        postExec = "${pkgs.notmuch}/bin/notmuch new";
      };
    };



@@ 59,6 69,8 @@
      hydroxide
    ];



    systemd.user.services."hydroxide" = {
      Unit.Description = "Bridge to ProtonMail";
      Install.WantedBy = [ "default.target" ];