Add calendar and contacts for ukaea

Temp disable vdirsyncer on Ronin as davmail currently isn't working
properly for caldav/carddav
This commit is contained in:
Evie Litherland-Smith 2023-09-28 11:05:14 +01:00
parent f8918f4bfd
commit 1c7a8ae0e5

View file

@ -21,7 +21,8 @@
"https://nucleus.ukaea.uk";
};
programs.mbsync.groups.inboxes.ukaea = [ "INBOX" ];
accounts.email.accounts = {
accounts = {
email.accounts = {
proton.primary = lib.mkForce false;
ukaea = let
host = "127.0.0.1";
@ -46,7 +47,8 @@
create = "both";
expunge = "both";
remove = "both";
patterns = [ "*" "!Junk" "!Snoozed" "!Sync Issues" "!Unsent Messages" ];
patterns =
[ "*" "!Junk" "!Snoozed" "!Sync Issues" "!Unsent Messages" ];
subFolders = "Verbatim";
extraConfig.account.AuthMechs = "LOGIN";
};
@ -61,6 +63,42 @@
notmuch.enable = true;
};
};
calendar.accounts.ukaea = {
local = {
type = "filesystem";
fileExt = ".ics";
};
remote = rec {
inherit (config.accounts.email.accounts.ukaea) userName passwordCommand;
type = "caldav";
url = "http://localhost:1080/users/${userName}/calendar/";
};
vdirsyncer = {
enable = true;
collections = [ "from a" ];
};
khal = {
enable = true;
type = "discover";
};
};
contact.accounts.ukaea = {
local = {
type = "filesystem";
fileExt = ".vcf";
};
remote = rec {
inherit (config.accounts.email.accounts.ukaea) userName passwordCommand;
type = "carddav";
url = "http://localhost:1080/users/${userName}/contacts/";
};
vdirsyncer = {
enable = true;
collections = [ "from a" ];
};
};
};
services.vdirsyncer.enable = lib.mkForce false; # TEMP until fixed
services.kanshi.profiles = {
undocked = {
outputs = [