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:
parent
f8918f4bfd
commit
1c7a8ae0e5
|
@ -21,46 +21,84 @@
|
||||||
"https://nucleus.ukaea.uk";
|
"https://nucleus.ukaea.uk";
|
||||||
};
|
};
|
||||||
programs.mbsync.groups.inboxes.ukaea = [ "INBOX" ];
|
programs.mbsync.groups.inboxes.ukaea = [ "INBOX" ];
|
||||||
accounts.email.accounts = {
|
accounts = {
|
||||||
proton.primary = lib.mkForce false;
|
email.accounts = {
|
||||||
ukaea = let
|
proton.primary = lib.mkForce false;
|
||||||
host = "127.0.0.1";
|
ukaea = let
|
||||||
tls.enable = false;
|
host = "127.0.0.1";
|
||||||
in rec {
|
tls.enable = false;
|
||||||
inherit (config.accounts.email.accounts.proton) realName;
|
in rec {
|
||||||
maildir.path = "UKAEA";
|
inherit (config.accounts.email.accounts.proton) realName;
|
||||||
imap = {
|
maildir.path = "UKAEA";
|
||||||
inherit host tls;
|
imap = {
|
||||||
port = 1144;
|
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";
|
|
||||||
};
|
};
|
||||||
|
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 = {
|
services.kanshi.profiles = {
|
||||||
undocked = {
|
undocked = {
|
||||||
outputs = [
|
outputs = [
|
||||||
|
|
Loading…
Reference in a new issue