nixos/home/accounts/contact.nix

28 lines
639 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
programs.vdirsyncer.enable = true;
accounts.contact = {
basePath = ".contact";
accounts = {
nextcloud = {
local = {
type = "filesystem";
fileExt = ".vcf";
};
remote = {
inherit (config.accounts.calendar.accounts.nextcloud.remote)
userName passwordCommand;
type = "carddav";
url =
"https://cloud.xenia.me.uk/remote.php/dav/addressbooks/users/xenia/contacts-1/";
};
vdirsyncer = {
enable = true;
collections = [ "from a" ];
};
};
};
};
}