mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 08:49:44 +01:00
a38f88045e
Add an extra option, accounts.contact.accounts.<name>.khard.defaultCollection to hardcode a subdirectory for khard to function as intended. Khard expects to be given a collection directory directly, from which there can be multiple of in a vdir. This contrasts khal or vdirsyncer which support recursive search. Fixes #4531
22 lines
421 B
Nix
22 lines
421 B
Nix
{
|
|
accounts.contact = {
|
|
basePath = "/home/user/who/likes///";
|
|
accounts.forward = {
|
|
local.type = "filesystem";
|
|
khard = {
|
|
enable = true;
|
|
defaultCollection = "////slashes//a/lot";
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.khard.enable = true;
|
|
|
|
test.stubs.khard = { };
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/khard/khard.conf \
|
|
${./dirty_path_expected}
|
|
'';
|
|
}
|