vdirsyncer: fix verify option type (#5096)

* vdirsyncer: change verify to type path

accounts.<calendar/contacts>.accounts.<name>.vdirsyncer.verify should not be a bool, it should be a path.

* vdirsyncer: Add example of verify use
This commit is contained in:
Isaac Grannis 2024-03-06 15:19:45 -05:00 committed by GitHub
parent f240015a3a
commit ad9254cd9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -93,9 +93,10 @@ in {
};
verify = mkOption {
type = types.nullOr types.bool;
type = types.nullOr types.path;
default = null;
description = "Verify SSL certificate.";
description = "Null or path to certificate to verify SSL against";
example = "/path/to/cert.pem";
};
verifyFingerprint = mkOption {

View file

@ -92,7 +92,7 @@ let
else if (n == "passwordPrompt") then
''password.fetch = ["prompt", "${v}"]''
else if (n == "verify") then
"verify = ${if v then "true" else "false"}"
''verify = "${v}"''
else if (n == "verifyFingerprint") then
''verify_fingerprint = "${v}"''
else if (n == "auth") then