NixOS-Configs/home/common/khard.nix
2024-01-06 14:02:54 -06:00

36 lines
989 B
Nix

{ config, pkgs, ... }:
{
programs.khard = {
enable = true;
settings = {
general = {
default_action = "list";
editor = "${pkgs.neovim}/bin/nvim";
merge_editor = [ "${pkgs.neovim}/bin/nvim" "-d" ];
};
"contact table" = {
display = "first_name";
group_by_addressbook = "no";
reverse = "no";
show_nicknames = "no";
show_uids = "no";
sort = "last_name";
localize_dates = "yes";
preferred_phone_number_type = [ "pref" "cell" "home" ];
preferred_email_address_type = [ "pref" "work" "home" ];
};
vcard = {
private_objects = [ "Jabber" "Skype" "Twitter" "Mastodon" ];
preferred_version = "3.0";
search_in_source_files = "no";
skip_unparsable = "no";
};
};
};
accounts.contact.accounts = {
contacts = {
khard.enable = true;
local.path = "~/.config/vdirsyncer/storage/contacts/default";
};
};
}