NixOS-Configs/home/common/khard.nix
2024-09-01 10:30:16 -05:00

55 lines
1.1 KiB
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 = "/home/don/.config/vdirsyncer/storage/contacts/default";
};
};
}