Add support for WebDAV providers
This commit is contained in:
parent
e0baf04669
commit
bff6f47528
1 changed files with 18 additions and 0 deletions
|
@ -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 = {
|
||||
nextcloud = mkProvider {};
|
||||
proton = mkProvider {};
|
||||
|
|
Loading…
Reference in a new issue