nixos/home/accounts/config/vdirsyncer.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

{ 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"]
''