[general]
status_path = "~/.local/calendars/status"


# nextcloud
[pair personal_sync]
a = "personal"
b = "personallocal"
collections = ["from a", "from b"]
conflict_resolution = "a wins"

# Calendars also have a color property
metadata = ["color", "displayname"]

[storage personallocal]
type = "filesystem"
path = "~/.local/calendars/my_calendar"
fileext = ".ics"

[storage personal]
type = "caldav"
url = "https://cloud.joelgarcia.xyz/remote.php/dav"
username = "admin"
password.fetch = ["command", "pass", "selfhosted/davnextcloud"]

# Contact sync

[pair contacts_sync]
a = "contacts_local"
b = "contacts_remote"
collections = ["from a", "from b"]
conflict_resolution = "a wins"

metadata =["displayname"]

[storage contacts_local]
type = "filesystem"
path = "~/.local/contacts/"
fileext = ".vcf"

[storage contacts_remote]
type = "carddav"
url = "https://cloud.joelgarcia.xyz/remote.php/dav"
username = "admin"
password.fetch = ["command", "pass", "selfhosted/davnextcloud"]
