1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/pimsync/basic.nix
2025-10-20 17:10:44 +02:00

39 lines
800 B
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";
};
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}
'';
}