nixos/home/accounts/config/vdirsyncer.nix
Evie Litherland-Smith a615762940 Combine mail setup with calendar and contacts
Move mail into accounts expression set
Add vdirsyncer and initial config to sync to CalDAV and CardDAV

TODO add to emacs
2023-09-02 08:41:07 +01:00

44 lines
1.2 KiB
Nix

{ 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"
collections = ["from a", "from b"]
metadata = ["displayname"]
conflict_resolution = null
[storage nextcloud_contacts_local]
type = "filesystem"
path = "~/.contacts/"
fileext = ".vcf"
[storage nextcloud_contacts_remote]
type = "carddav"
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"
collections = ["from a", "from b"]
metadata = ["displayname", "color"]
[storage nextcloud_calendar_local]
type = "singlefile"
path = "~/.calendars/%s.ics"
[storage nextcloud_calendar_remote]
type = "caldav"
url = "https://cloud.xenia.me.uk/remote.php/dav"
username = "xenia"
password.fetch = ["shell", "${pkgs.pass}/bin/pass show Calendar/NextCloud/emacs | head -n1"]
''