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:
parent
20c7963471
commit
c3abf8ea1a
4 changed files with 60 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
20
tests/modules/programs/khard/discover_type.nix
Normal file
20
tests/modules/programs/khard/discover_type.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
9
tests/modules/programs/khard/discover_type_expected
Normal file
9
tests/modules/programs/khard/discover_type_expected
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[addressbooks]
|
||||
[[test]]
|
||||
path = /home/hm-user/.contacts/test/*
|
||||
type = discover
|
||||
|
||||
|
||||
[general]
|
||||
default_action=list
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue