vdirsyncer: Add option to request vcard 4.0

This commit is contained in:
Tobias Schmalz
2025-09-25 17:10:59 +02:00
committed by Matthieu Coudron
parent 96156a9e86
commit 3670a78eee
2 changed files with 11 additions and 0 deletions

View File

@@ -118,6 +118,15 @@ in
''; '';
}; };
useVcard4 = mkOption {
type = types.bool;
default = false;
description = ''
Specifies whether vdirsyncer should request vCards in version 4.0.
If set to `false` then vdirsyncer will default to version 3.0.
'';
};
verify = mkOption { verify = mkOption {
type = types.nullOr types.path; type = types.nullOr types.path;
default = null; default = null;

View File

@@ -101,6 +101,8 @@ let
end_date = "${v.end}"'' end_date = "${v.end}"''
else if (n == "itemTypes") then else if (n == "itemTypes") then
"item_types = ${listString (map wrap v)}" "item_types = ${listString (map wrap v)}"
else if (n == "useVcard4") then
''use_vcard_4 = ${v}''
else if (n == "userName") then else if (n == "userName") then
''username = "${v}"'' ''username = "${v}"''
else if (n == "userNameCommand") then else if (n == "userNameCommand") then