72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
tomlFormat = pkgs.formats.toml {};
|
|
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."christoph@schmatzler.com" = {
|
|
default = true;
|
|
|
|
folder.filters = "all";
|
|
|
|
left = {
|
|
backend = {
|
|
type = "maildir";
|
|
root-dir = maildirPath;
|
|
};
|
|
folder = {
|
|
aliases = {
|
|
inbox = "INBOX";
|
|
drafts = "Drafts";
|
|
sent = "Sent Messages";
|
|
trash = "Deleted Messages";
|
|
};
|
|
permissions = {
|
|
create = true;
|
|
delete = true;
|
|
};
|
|
};
|
|
flag.permissions.update = true;
|
|
message.permissions = {
|
|
create = true;
|
|
delete = true;
|
|
};
|
|
};
|
|
|
|
right = {
|
|
backend = {
|
|
type = "imap";
|
|
host = "imap.mail.me.com";
|
|
port = 993;
|
|
encryption = "tls";
|
|
login = account.userName;
|
|
auth = {
|
|
type = "password";
|
|
cmd = concatStringsSep " " account.passwordCommand;
|
|
};
|
|
clients-pool-size = 8;
|
|
};
|
|
folder = {
|
|
aliases = {
|
|
inbox = "INBOX";
|
|
drafts = "Drafts";
|
|
sent = "Sent Messages";
|
|
trash = "Deleted Messages";
|
|
};
|
|
permissions.delete = false;
|
|
};
|
|
message.permissions.delete = false;
|
|
};
|
|
};
|
|
};
|
|
}
|