2.home-manager/tests/modules/programs/pimsync/basic.nix
Anton Mosich 7385f250cc pimsync: extend test to contacts
If I had added such a test right away, I would have encountered #8258
myself. I mistakenly believed the contact and calendar modules to be the
same.

(cherry picked from commit c3d1e5c65a)
2025-12-02 21:33:04 -06:00

55 lines
1.1 KiB
Nix

{
accounts.calendar = {
accounts.caldav = {
pimsync.enable = true;
remote = {
passwordCommand = [
"pass"
"caldav"
];
type = "caldav";
url = "https://caldav.example.com";
userName = "alice";
};
};
accounts.http = {
pimsync.enable = true;
remote = {
type = "http";
url = "https://example.com/calendar";
};
};
basePath = ".local/state/calendar";
};
accounts.contact = {
accounts.carddav = {
pimsync.enable = true;
remote = {
passwordCommand = [
"pass"
"carddav"
];
type = "carddav";
url = "https://carddav.example.com";
userName = "bob";
};
};
basePath = ".local/state/contact";
};
programs.pimsync = {
enable = true;
settings = [
{
name = "status_path";
params = [ "/test/dir" ];
}
];
};
nmt.script = ''
assertFileExists home-files/.config/pimsync/pimsync.conf
assertFileContent home-files/.config/pimsync/pimsync.conf ${./basic.scfg}
'';
}