update: email and notmuch
This commit is contained in:
@@ -1,91 +1,34 @@
|
||||
{
|
||||
pkgs,
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
w3m
|
||||
inetutils
|
||||
];
|
||||
|
||||
services = {
|
||||
# mbsync = {
|
||||
# enable = true;
|
||||
# frequency = "*-*-* *:*/5:00";
|
||||
# postExec = "\${pkgs.notmuch} new";
|
||||
# };
|
||||
vdirsyncer = {
|
||||
enable = true;
|
||||
#frequency = "*-*-* *:*/5:00";
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
aerc = {
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
ui = {
|
||||
sort = "-r arrival";
|
||||
threading-enabled = true;
|
||||
fuzzy-complete = true;
|
||||
};
|
||||
general = {
|
||||
default-save-path = "~/Downloads";
|
||||
log-file = "~/.aerc.log";
|
||||
unsafe-accounts-conf = true;
|
||||
};
|
||||
compose = {
|
||||
address-book-cmd = "notmuch address \"%s\"";
|
||||
};
|
||||
filters = {
|
||||
"text/plain" = "colorize";
|
||||
"text/calendar" = "calendar";
|
||||
"text/html" = "html | colorize";
|
||||
};
|
||||
};
|
||||
};
|
||||
msmtp = {
|
||||
enable = true;
|
||||
};
|
||||
mbsync = {
|
||||
enable = true;
|
||||
};
|
||||
lieer = {
|
||||
enable = true;
|
||||
};
|
||||
vdirsyncer = {
|
||||
enable = true;
|
||||
};
|
||||
khal = {
|
||||
enable = true;
|
||||
};
|
||||
khard = {
|
||||
enable = true;
|
||||
};
|
||||
mu = {
|
||||
enable = true;
|
||||
};
|
||||
afew = {
|
||||
enable = true;
|
||||
};
|
||||
notmuch = {
|
||||
enable = true;
|
||||
new.tags = [ "new" ];
|
||||
hooks = {
|
||||
postNew = ''
|
||||
notmuch tag +sent -new tag:new from:michael@michaelthomson.dev
|
||||
|
||||
notmuch tag +cal attachment:.ics
|
||||
|
||||
notmuch tag +inbox +unread -new "tag:new"
|
||||
'';
|
||||
afew --tag --new
|
||||
'';
|
||||
preNew = ''
|
||||
mbsync -a
|
||||
'';
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
accounts = {
|
||||
|
||||
email = {
|
||||
accounts.personal = {
|
||||
primary = true;
|
||||
@@ -93,9 +36,6 @@
|
||||
realName = "Michael Thomson";
|
||||
userName = "michael@michaelthomson.dev";
|
||||
passwordCommand = "rbw get --folder email michael@michaelthomson.dev";
|
||||
aerc = {
|
||||
enable = true;
|
||||
};
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "both";
|
||||
@@ -121,67 +61,6 @@
|
||||
notmuch = {
|
||||
enable = true;
|
||||
};
|
||||
mu = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
calendar = {
|
||||
basePath = ".calendar";
|
||||
accounts.personal = {
|
||||
primary = true;
|
||||
primaryCollection = "personal";
|
||||
remote = {
|
||||
type = "caldav";
|
||||
url = "https://nextcloud.michaelthomson.dev/remote.php/dav";
|
||||
userName = "michael@michaelthomson.dev";
|
||||
passwordCommand = [
|
||||
"rbw"
|
||||
"get"
|
||||
"nextcloud.michaelthomson.dev"
|
||||
];
|
||||
};
|
||||
vdirsyncer = {
|
||||
enable = true;
|
||||
auth = "basic";
|
||||
collections = ["personal"];
|
||||
};
|
||||
khal = {
|
||||
enable = true;
|
||||
type = "calendar";
|
||||
};
|
||||
};
|
||||
};
|
||||
contact = {
|
||||
basePath = ".contacts";
|
||||
accounts.personal = {
|
||||
local = {
|
||||
type = "filesystem";
|
||||
fileExt = ".vcf";
|
||||
};
|
||||
remote = {
|
||||
type = "carddav";
|
||||
url = "https://nextcloud.michaelthomson.dev/remote.php/dav";
|
||||
userName = "michael@michaelthomson.dev";
|
||||
passwordCommand = [
|
||||
"rbw"
|
||||
"get"
|
||||
"nextcloud.michaelthomson.dev"
|
||||
];
|
||||
};
|
||||
vdirsyncer = {
|
||||
enable = true;
|
||||
auth = "basic";
|
||||
collections = ["contacts"];
|
||||
};
|
||||
khal = {
|
||||
enable = true;
|
||||
collections = ["contacts"];
|
||||
};
|
||||
khard = {
|
||||
enable = true;
|
||||
defaultCollection = "contacts";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user