Add support for WebDAV providers

This commit is contained in:
Manuel Thalmann 2024-05-15 17:45:24 +02:00
parent e0baf04669
commit bff6f47528

View file

@ -33,6 +33,24 @@ let
; ;
}; };
mkWebdavProvider = { vendor, vendorName }: (
mkProvider {
displayName = vendorName;
options = {
vendor = lib.mkOption {
type = lib.types.str;
description = "The vendor of the WebDAV share.";
default = vendor;
};
url = lib.mkOption {
type = lib.types.str;
description = "The WebDAV URL of the ${vendorName} server to connect to.";
};
};
});
syncProviders = { syncProviders = {
nextcloud = mkProvider {}; nextcloud = mkProvider {};
proton = mkProvider {}; proton = mkProvider {};