home | updated khard to use hm module

This commit is contained in:
Don Harper 2023-10-02 15:16:10 -05:00
parent c7f82da5cc
commit 234d46cb5f
2 changed files with 44 additions and 39 deletions

View file

@ -1,31 +1,36 @@
{ pkgs, ... }: {
home.packages = with pkgs; [ khard ];
xdg.configFile."khard/khard.conf".text = ''
[addressbooks]
[[contacts]]
path = ~/.config/vdirsyncer/storage/contacts/default
[general]
debug = no
default_action = list
editor = vim
merge_editor = vimdiff
[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
'';
{ 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";
};
};
}