[general]
status_path = "~/.vdirsyncer/status/"

[storage nextcloud_cal_remote]
	type = "caldav"
	url = "https://nc.debucquoy.me/remote.php/dav"
	username = "tonitch"
	password.fetch = ["command", "cat", "~/.config/pass/vdirsyncer.txt"]

[storage nextcloud_card_remote]
	type = "carddav"
	url = "https://nc.debucquoy.me/remote.php/dav"
	username = "tonitch"
	password.fetch = ["command", "cat", "~/.config/pass/vdirsyncer.txt"]

[storage nextcloud_cal_local]
	type = "filesystem"
	path = "~/.cache/calendar/nextcloud"
	fileext = ".ics"

[storage nextcloud_card_local]
	type = "filesystem"
	path = "~/.cache/contact/nextcloud"
	fileext = ".vcf"

[pair nextcloud_cal]
	a = "nextcloud_cal_remote"
	b = "nextcloud_cal_local"
	collections = ["from a"]
	metadata= ["color", "displayname", "description", "order"]

[pair nextcloud_card]
	a = "nextcloud_card_remote"
	b = "nextcloud_card_local"
	collections = ["from a"]
	metadata= ["displayname"]
