@@ -1,13 +1,14 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
programs.himalaya = {
|
programs.himalaya = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.writeShellApplication {
|
package =
|
||||||
name = "himalaya";
|
pkgs.writeShellApplication {
|
||||||
runtimeInputs = [pkgs.himalaya];
|
name = "himalaya";
|
||||||
text = ''
|
runtimeInputs = [pkgs.himalaya];
|
||||||
exec env RUST_LOG="warn,imap_codec::response=error" ${pkgs.himalaya}/bin/himalaya "$@"
|
text = ''
|
||||||
'';
|
exec env RUST_LOG="warn,imap_codec::response=error" ${pkgs.himalaya}/bin/himalaya "$@"
|
||||||
};
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
accounts.email = {
|
accounts.email = {
|
||||||
|
|||||||
@@ -11,61 +11,62 @@ with lib; let
|
|||||||
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 =
|
||||||
accounts."christoph@schmatzler.com" = {
|
tomlFormat.generate "neverest-config.toml" {
|
||||||
default = true;
|
accounts."christoph@schmatzler.com" = {
|
||||||
|
default = true;
|
||||||
|
|
||||||
folder.filters = "all";
|
folder.filters = "all";
|
||||||
|
|
||||||
left = {
|
left = {
|
||||||
backend = {
|
backend = {
|
||||||
type = "maildir";
|
type = "maildir";
|
||||||
root-dir = maildirPath;
|
root-dir = maildirPath;
|
||||||
};
|
|
||||||
folder = {
|
|
||||||
aliases = {
|
|
||||||
inbox = "INBOX";
|
|
||||||
drafts = "Drafts";
|
|
||||||
sent = "Sent Messages";
|
|
||||||
trash = "Deleted Messages";
|
|
||||||
};
|
};
|
||||||
permissions = {
|
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;
|
create = true;
|
||||||
delete = true;
|
delete = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
flag.permissions.update = true;
|
|
||||||
message.permissions = {
|
|
||||||
create = true;
|
|
||||||
delete = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
right = {
|
right = {
|
||||||
backend = {
|
backend = {
|
||||||
type = "imap";
|
type = "imap";
|
||||||
host = "imap.mail.me.com";
|
host = "imap.mail.me.com";
|
||||||
port = 993;
|
port = 993;
|
||||||
encryption = "tls";
|
encryption = "tls";
|
||||||
login = account.userName;
|
login = account.userName;
|
||||||
auth = {
|
auth = {
|
||||||
type = "password";
|
type = "password";
|
||||||
cmd = concatStringsSep " " account.passwordCommand;
|
cmd = concatStringsSep " " account.passwordCommand;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
folder = {
|
||||||
folder = {
|
aliases = {
|
||||||
aliases = {
|
inbox = "INBOX";
|
||||||
inbox = "INBOX";
|
drafts = "Drafts";
|
||||||
drafts = "Drafts";
|
sent = "Sent Messages";
|
||||||
sent = "Sent Messages";
|
trash = "Deleted Messages";
|
||||||
trash = "Deleted Messages";
|
};
|
||||||
|
permissions.delete = false;
|
||||||
};
|
};
|
||||||
permissions.delete = false;
|
message.permissions.delete = false;
|
||||||
};
|
};
|
||||||
message.permissions.delete = false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.services.neverest-sync = {
|
systemd.user.services.neverest-sync = {
|
||||||
Unit = {
|
Unit = {
|
||||||
|
|||||||
Reference in New Issue
Block a user