2025-03-09 14:38:25 -04:00

162 lines
3.3 KiB
Nix

{
pkgs,
config,
...
}: {
home.packages = with pkgs; [
w3m
];
services = {
# mbsync = {
# enable = true;
# frequency = "*-*-* *:*/5:00";
# postExec = "\${pkgs.notmuch} new";
# };
vdirsyncer = {
enable = true;
#frequency = "*-*-* *:*/5:00";
};
};
programs = {
aerc = {
enable = true;
extraConfig = {
ui = {
sort = "arrival -r";
};
general = {
unsafe-accounts-conf = true;
};
compose = {
address-book-cmd = "khard email --parsable --remove-first-line %s";
};
filters = {
"text/plain" = "colorize";
"text/calendar" = "calendar";
"text/html" = "html | colorize";
};
};
};
msmtp = {
enable = true;
};
mbsync = {
enable = true;
};
notmuch = {
enable = true;
};
lieer = {
enable = true;
};
vdirsyncer = {
enable = true;
};
khal = {
enable = true;
};
khard = {
enable = true;
};
};
accounts = {
email = {
accounts.personal = {
primary = true;
address = "michael@michaelthomson.dev";
realName = "Michael Thomson";
userName = "michael@michaelthomson.dev";
passwordCommand = "rbw get --folder email michael@michaelthomson.dev";
aerc = {
enable = true;
};
mbsync = {
enable = true;
create = "both";
};
imap = {
host = "mail.michaelthomson.dev";
port = 993;
tls = {
enable = true;
};
};
msmtp = {
enable = true;
};
smtp = {
host = "mail.michaelthomson.dev";
port = 465;
tls = {
enable = true;
};
};
notmuch = {
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";
};
};
};
};
}