home-manager/tests/modules/programs/khard/multiple_accounts.nix

24 lines
431 B
Nix
Raw Normal View History

2023-07-03 20:06:38 +00:00
{
accounts.contact = {
basePath = ".contacts";
accounts.test1 = {
local.type = "filesystem";
khard.enable = true;
};
accounts.test2 = {
local.type = "filesystem";
khard.enable = true;
};
};
programs.khard.enable = true;
test.stubs.khard = { };
nmt.script = ''
assertFileContent \
home-files/.config/khard/khard.conf \
${./multiple_accounts_expected}
'';
}