mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 00:21:04 +01:00
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.
This commit is contained in:
parent
bf003999ed
commit
c3d1e5c65a
2 changed files with 33 additions and 0 deletions
|
|
@ -22,6 +22,22 @@
|
||||||
basePath = ".local/state/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 = {
|
programs.pimsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = [
|
settings = [
|
||||||
|
|
|
||||||
|
|
@ -28,4 +28,21 @@ pair calendar-http {
|
||||||
storage_a http-local
|
storage_a http-local
|
||||||
storage_b http-remote
|
storage_b http-remote
|
||||||
}
|
}
|
||||||
|
storage carddav-local {
|
||||||
|
fileext .vcf
|
||||||
|
path /home/hm-user/.local/state/contact/carddav
|
||||||
|
type vdir/vcard
|
||||||
|
}
|
||||||
|
storage carddav-remote {
|
||||||
|
type carddav
|
||||||
|
url https://carddav.example.com
|
||||||
|
username bob
|
||||||
|
password {
|
||||||
|
cmd pass carddav
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pair contacts-carddav {
|
||||||
|
storage_a carddav-local
|
||||||
|
storage_b carddav-remote
|
||||||
|
}
|
||||||
status_path /test/dir
|
status_path /test/dir
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue