1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

khard: support discover entries (#7785)

This adds support for discover type entries, which were introduced in
khard 0.20.0, which work very similar to the equally-named khal feature.
This commit is contained in:
Anton Mosich 2025-09-14 00:31:16 +00:00 committed by GitHub
parent 20c7963471
commit c3abf8ea1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 60 additions and 1 deletions

View file

@ -4,4 +4,5 @@
khard_multiple_accounts = ./multiple_accounts.nix;
khard_dirty_path = ./dirty_path.nix;
khard_multiple_with_abooks = ./multiple_with_abooks.nix;
khard_discover_type = ./discover_type.nix;
}

View file

@ -0,0 +1,20 @@
{
accounts.contact = {
basePath = ".contacts";
accounts.test = {
local.type = "filesystem";
khard = {
enable = true;
type = "discover";
};
};
};
programs.khard.enable = true;
nmt.script = ''
assertFileContent \
home-files/.config/khard/khard.conf \
${./discover_type_expected}
'';
}

View file

@ -0,0 +1,9 @@
[addressbooks]
[[test]]
path = /home/hm-user/.contacts/test/*
type = discover
[general]
default_action=list