2023-09-02 08:41:07 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
''
|
|
|
|
[general]
|
|
|
|
# A folder where vdirsyncer can store some metadata about each pair.
|
|
|
|
status_path = "~/.vdirsyncer/status/"
|
|
|
|
|
|
|
|
# CARDDAV
|
|
|
|
[pair nextcloud_contacts]
|
|
|
|
a = "nextcloud_contacts_local"
|
|
|
|
b = "nextcloud_contacts_remote"
|
2023-09-03 08:06:55 +01:00
|
|
|
collections = ["from b"]
|
2023-09-02 08:41:07 +01:00
|
|
|
metadata = ["displayname"]
|
|
|
|
conflict_resolution = null
|
|
|
|
|
|
|
|
[storage nextcloud_contacts_local]
|
|
|
|
type = "filesystem"
|
2023-09-03 08:06:55 +01:00
|
|
|
path = "~/.contacts/personal/"
|
2023-09-02 08:41:07 +01:00
|
|
|
fileext = ".vcf"
|
|
|
|
|
|
|
|
[storage nextcloud_contacts_remote]
|
|
|
|
type = "carddav"
|
2023-09-03 08:06:55 +01:00
|
|
|
read_only = true
|
2023-09-02 08:41:07 +01:00
|
|
|
url = "https://cloud.xenia.me.uk/remote.php/dav/addressbooks/users/xenia/contacts-1/"
|
|
|
|
username = "xenia"
|
|
|
|
password.fetch = ["shell", "${pkgs.pass}/bin/pass show Calendar/NextCloud/emacs | head -n1"]
|
|
|
|
|
|
|
|
# CALDAV
|
|
|
|
[pair nextcloud_calendar]
|
|
|
|
a = "nextcloud_calendar_local"
|
|
|
|
b = "nextcloud_calendar_remote"
|
2023-09-03 08:06:55 +01:00
|
|
|
collections = ["from b"]
|
2023-09-02 08:41:07 +01:00
|
|
|
metadata = ["displayname", "color"]
|
|
|
|
|
|
|
|
[storage nextcloud_calendar_local]
|
|
|
|
type = "singlefile"
|
2023-09-03 08:06:55 +01:00
|
|
|
path = "~/.calendars/nextcloud/%s.ics"
|
2023-09-02 08:41:07 +01:00
|
|
|
|
|
|
|
[storage nextcloud_calendar_remote]
|
|
|
|
type = "caldav"
|
2023-09-03 08:06:55 +01:00
|
|
|
read_only = true
|
2023-09-02 08:41:07 +01:00
|
|
|
url = "https://cloud.xenia.me.uk/remote.php/dav"
|
|
|
|
username = "xenia"
|
|
|
|
password.fetch = ["shell", "${pkgs.pass}/bin/pass show Calendar/NextCloud/emacs | head -n1"]
|
2023-09-03 08:06:55 +01:00
|
|
|
|
|
|
|
[pair ukaea_calendar]
|
|
|
|
a = "ukaea_calendar_local"
|
|
|
|
b = "ukaea_calendar_remote"
|
|
|
|
collections = ["calendar"]
|
|
|
|
partial_sync = "ignore"
|
|
|
|
metadata = ["displayname", "color"]
|
|
|
|
|
|
|
|
[storage ukaea_calendar_local]
|
|
|
|
type = "singlefile"
|
|
|
|
path = "~/.calendars/ukaea/%s.ics"
|
|
|
|
|
|
|
|
[storage ukaea_calendar_remote]
|
|
|
|
type = "caldav"
|
|
|
|
read_only = true
|
|
|
|
start_date = "datetime.now() - timedelta(days=31)"
|
|
|
|
end_date = "datetime.now() + timedelta(days=31)"
|
|
|
|
item_types = ["VEVENT"]
|
|
|
|
url = "http://localhost:1080/users/evie.litherland-smith@ukaea.uk/calendar"
|
|
|
|
username = "evie.litherland-smith@ukaea.uk"
|
|
|
|
password.fetch = ["shell", "${pkgs.pass}/bin/pass show Mail/Outlook/ukaea | head -n1"]
|
2023-09-02 08:41:07 +01:00
|
|
|
''
|