1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-13 18:23:39 +02:00

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 Mikilio
parent 98d1d23212
commit a2b56736d8
No known key found for this signature in database
GPG Key ID: 5B2F1A890CF33F3F
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