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,46 +21,84 @@
"https://nucleus.ukaea.uk";
};
programs.mbsync.groups.inboxes.ukaea = [ "INBOX" ];
accounts.email.accounts = {
proton.primary = lib.mkForce false;
ukaea = let
host = "127.0.0.1";
tls.enable = false;
in rec {
inherit (config.accounts.email.accounts.proton) realName;
maildir.path = "UKAEA";
imap = {
inherit host tls;
port = 1144;
};
smtp = {
inherit host tls;
port = 1026;
};
address = "evie.litherland-smith@ukaea.uk";
passwordCommand = "${pkgs.pass}/bin/pass show Mail/Outlook/ukaea";
primary = true;
userName = address;
mbsync = {
enable = true;
create = "both";
expunge = "both";
remove = "both";
patterns = [ "*" "!Junk" "!Snoozed" "!Sync Issues" "!Unsent Messages" ];
subFolders = "Verbatim";
extraConfig.account.AuthMechs = "LOGIN";
};
msmtp = {
enable = true;
extraConfig = {
tls = "off";
auth = "login";
accounts = {
email.accounts = {
proton.primary = lib.mkForce false;
ukaea = let
host = "127.0.0.1";
tls.enable = false;
in rec {
inherit (config.accounts.email.accounts.proton) realName;
maildir.path = "UKAEA";
imap = {
inherit host tls;
port = 1144;
};
smtp = {
inherit host tls;
port = 1026;
};
address = "evie.litherland-smith@ukaea.uk";
passwordCommand = "${pkgs.pass}/bin/pass show Mail/Outlook/ukaea";
primary = true;
userName = address;
mbsync = {
enable = true;
create = "both";
expunge = "both";
remove = "both";
patterns =
[ "*" "!Junk" "!Snoozed" "!Sync Issues" "!Unsent Messages" ];
subFolders = "Verbatim";
extraConfig.account.AuthMechs = "LOGIN";
};
msmtp = {
enable = true;
extraConfig = {
tls = "off";
auth = "login";
};
};
mu.enable = true;
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" ];
};
mu.enable = true;
notmuch.enable = true;
};
};
services.vdirsyncer.enable = lib.mkForce false; # TEMP until fixed
services.kanshi.profiles = {
undocked = {
outputs = [