mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
34 lines
700 B
Nix
34 lines
700 B
Nix
{
|
|
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}
|
|
'';
|
|
}
|