diff options
author | Timo Wilken | 2022-12-30 10:54:17 +0100 |
---|---|---|
committer | Timo Wilken | 2022-12-30 10:54:17 +0100 |
commit | 0f308b1c90444f5f0293bf40aa1ef177bc51036c (patch) | |
tree | b052860a66b8bf3b094fa16e4538887003c37ada /tw/home/files/vdirsyncer.conf | |
parent | da1ff8a0816e430d2c035217d80db3be5cc919ab (diff) |
Reorganise Guix home declaration into module tree
Diffstat (limited to 'tw/home/files/vdirsyncer.conf')
-rw-r--r-- | tw/home/files/vdirsyncer.conf | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/tw/home/files/vdirsyncer.conf b/tw/home/files/vdirsyncer.conf new file mode 100644 index 00000000..5dac2686 --- /dev/null +++ b/tw/home/files/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"] |