aboutsummaryrefslogtreecommitdiff
path: root/tw/home/files/vdirsyncer.conf
blob: 0745c98f34dfbcacbfcb64aabdb10aa53974cf36 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[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", "~/.guix-home/profile/bin/pass www/nextcloud/timo | awk '/^username: /{print $2}'"]
password.fetch = ["shell", "~/.guix-home/profile/bin/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", "~/.guix-home/profile/bin/pass www/nextcloud/timo | awk '/^username: /{print $2}'"]
password.fetch = ["shell", "~/.guix-home/profile/bin/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", "~/.guix-home/profile/bin/pass www/nextcloud/timo | awk '/^username: /{print $2}'"]
password.fetch = ["shell", "~/.guix-home/profile/bin/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"]

[storage local_cern_calendar]
type = "filesystem"
path = "~/.local/share/vdirsyncer/cern"
fileext = ".ics"

[storage cern_calendar]
type = "http"
# The URL contains an access token, so get it from pass.
url.fetch = ["shell", "~/.guix-home/profile/bin/pass cern/exol/calendar-url | head -1"]