2023-09-25 14:22:51 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-09-26 09:41:03 +01:00
|
|
|
programs.vdirsyncer.enable = true;
|
2023-09-25 14:22:51 +01:00
|
|
|
accounts.contact = {
|
|
|
|
basePath = ".contact";
|
2023-10-03 07:59:00 +01:00
|
|
|
accounts = let
|
|
|
|
calendarAccounts = config.accounts.calendar.accounts;
|
|
|
|
local = {
|
|
|
|
type = "filesystem";
|
|
|
|
fileExt = ".vcf";
|
|
|
|
};
|
|
|
|
in {
|
2023-09-25 14:22:51 +01:00
|
|
|
nextcloud = {
|
2023-10-03 07:59:00 +01:00
|
|
|
inherit local;
|
2023-09-25 14:22:51 +01:00
|
|
|
remote = {
|
2023-10-03 07:59:00 +01:00
|
|
|
inherit (calendarAccounts.nextcloud.remote) userName passwordCommand;
|
2023-09-25 14:22:51 +01:00
|
|
|
type = "carddav";
|
|
|
|
url =
|
|
|
|
"https://cloud.xenia.me.uk/remote.php/dav/addressbooks/users/xenia/contacts-1/";
|
|
|
|
};
|
|
|
|
vdirsyncer = {
|
2023-10-03 07:59:00 +01:00
|
|
|
inherit (calendarAccounts.nextcloud.vdirsyncer) enable;
|
2023-09-25 14:22:51 +01:00
|
|
|
collections = [ "from a" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|