khard: add module

This commit is contained in:
Olmo Kramer 2023-07-03 22:06:38 +02:00 committed by Robert Helgesson
parent 209a24dff2
commit 6f9b5b83ad
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
11 changed files with 212 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{
accounts.contact = {
basePath = ".contacts";
accounts.test = {
local.type = "filesystem";
khard.enable = true;
};
};
programs.khard = {
enable = true;
settings = {
general = {
default_action = "list";
editor = [ "vim" "-i" "NONE" ];
};
"contact table" = {
group_by_address_book = true;
reverse = false;
preferred_phone_number_type = [ "pref" "cell" "home" ];
preferred_email_address_type = [ "pref" "work" "home" ];
};
};
};
test.stubs.khard = { };
nmt.script = ''
assertFileContent \
home-files/.config/khard/khard.conf \
${./basic_config_expected}
'';
}