diff options
author | Timo Wilken | 2022-12-11 21:50:08 +0100 |
---|---|---|
committer | Timo Wilken | 2022-12-11 21:50:08 +0100 |
commit | aadef8480341091ae2c909bc952dfe9904cd2a2e (patch) | |
tree | 686391ceb024572a0abff834b985839f3678840e /vdirsyncer.conf | |
parent | 5b0f70233edc1f527c977ce1379734e1389e20f4 (diff) |
Use vdirsyncer and khal to access calendar
Diffstat (limited to 'vdirsyncer.conf')
-rw-r--r-- | vdirsyncer.conf | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/vdirsyncer.conf b/vdirsyncer.conf new file mode 100644 index 00000000..5dac2686 --- /dev/null +++ b/vdirsyncer.conf @@ -0,0 +1,77 @@ +[general] +status_path = "~/.local/share/vdirsyncer/status" + +# Main contact list from Nextcloud. +[pair main_contacts] +a = "nextcloud_main_contacts" +b = "local_main_contacts" +metadata = ["displayname", "description"] +collections = ["from a", "from b"] +conflict_resolution = "a wins" + +[storage local_main_contacts] +type = "filesystem" +path = "~/.local/share/vdirsyncer/main-contacts" +fileext = ".vcf" + +[storage nextcloud_main_contacts] +type = "carddav" +url = "https://cloud.wilkenfamily.de/remote.php/dav/addressbooks/users/timo/contacts/" +username.fetch = ["shell", "pass www/nextcloud/timo | awk '/^username: /{print $2}'"] +password.fetch = ["shell", "pass www/nextcloud/timo | head -1"] + +# "Sandbox Contacts" from Nextcloud, mostly for WhatsApp. +[pair sandbox_contacts] +a = "nextcloud_sandbox_contacts" +b = "local_sandbox_contacts" +metadata = ["displayname", "description"] +collections = ["from a", "from b"] +conflict_resolution = "a wins" + +[storage local_sandbox_contacts] +type = "filesystem" +path = "~/.local/share/vdirsyncer/sandbox-contacts" +fileext = ".vcf" + +[storage nextcloud_sandbox_contacts] +type = "carddav" +url = "https://cloud.wilkenfamily.de/remote.php/dav/addressbooks/users/timo/sandbox-contacts/" +username.fetch = ["shell", "pass www/nextcloud/timo | awk '/^username: /{print $2}'"] +password.fetch = ["shell", "pass www/nextcloud/timo | head -1"] + +# Calendar from Nextcloud. +[pair calendars] +a = "nextcloud_calendars" +b = "local_calendars" +metadata = ["color", "displayname", "description", "order"] +collections = ["from a", "from b"] +conflict_resolution = "a wins" + +[storage local_calendars] +type = "filesystem" +path = "~/.local/share/vdirsyncer/calendars" +fileext = ".ics" + +[storage nextcloud_calendars] +type = "caldav" +url = "https://cloud.wilkenfamily.de/remote.php/dav/principals/users/timo/" +username.fetch = ["shell", "pass www/nextcloud/timo | awk '/^username: /{print $2}'"] +password.fetch = ["shell", "pass www/nextcloud/timo | head -1"] + +# Work Indico calendar (read-only). +[pair indico] +a = "indico_calendar" +b = "local_indico_calendar" +metadata = [] +collections = null +conflict_resolution = "a wins" + +[storage local_indico_calendar] +type = "filesystem" +path = "~/.local/share/vdirsyncer/indico" +fileext = ".ics" + +[storage indico_calendar] +type = "http" +# The URL contains an access token, so get it from pass. +url.fetch = ["shell", "~/.guix-home/profile/bin/pass cern/indico-calendar-url | head -1"] |