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

18
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1696063111, "lastModified": 1696145345,
"narHash": "sha256-F2IJEbyH3xG0eqyAYn9JoV+niqNz+xb4HICYNkkviNI=", "narHash": "sha256-3dM7I/d4751SLPJah0to1WBlWiyzIiuCEUwJqwBdmr4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "ae896c810f501bf0c3a2fd7fc2de094dd0addf01", "rev": "6f9b5b83ad1f470b3d11b8a9fe1d5ef68c7d0e30",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -23,11 +23,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1695887975, "lastModified": 1696161939,
"narHash": "sha256-u3+5FR12dI305jCMb0fJNQx2qwoQ54lv1tPoEWp0hmg=", "narHash": "sha256-HI1DxS//s46/qv9dcW06TzXaBjxL2DVTQP8R1QsnHzM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "adcfd6aa860d1d129055039696bc457af7d50d0e", "rev": "0ab3ee718e964fb42dc57ace6170f19cb0b66532",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -39,11 +39,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1695830400, "lastModified": 1696019113,
"narHash": "sha256-gToZXQVr0G/1WriO83olnqrLSHF2Jb8BPcmCt497ro0=", "narHash": "sha256-X3+DKYWJm93DRSdC5M6K5hLqzSya9BjibtBsuARoPco=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8a86b98f0ba1c405358f1b71ff8b5e1d317f5db2", "rev": "f5892ddac112a1e9b3612c39af1b72987ee5783a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,31 +1,36 @@
{ pkgs, ... }: { { config, pkgs, ... }:
home.packages = with pkgs; [ khard ]; {
xdg.configFile."khard/khard.conf".text = '' programs.khard = {
[addressbooks] enable = true;
[[contacts]] settings = {
path = ~/.config/vdirsyncer/storage/contacts/default general = {
default_action = "list";
[general] editor = "${pkgs.neovim}/bin/nvim";
debug = no merge_editor = [ "${pkgs.neovim}/bin/nvim" "-d" ];
default_action = list };
editor = vim "contact table" = {
merge_editor = vimdiff display = "first_name";
group_by_addressbook = "no";
[contact table] reverse = "no";
display = first_name show_nicknames = "no";
group_by_addressbook = no show_uids = "no";
reverse = no sort = "last_name";
show_nicknames = no localize_dates = "yes";
show_uids = no preferred_phone_number_type = [ "pref" "cell" "home" ];
sort = last_name preferred_email_address_type = [ "pref" "work" "home" ];
localize_dates = yes };
preferred_phone_number_type = pref, cell, home vcard = {
preferred_email_address_type = pref, work, home private_objects = [ "Jabber" "Skype" "Twitter" "Mastodon" ];
preferred_version = "3.0";
[vcard] search_in_source_files = "no";
private_objects = Jabber, Skype, Twitter, Mastodon skip_unparsable = "no";
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";
};
};
} }