Remove unnecessary code segments

This commit is contained in:
Manuel Thalmann 2024-05-15 11:44:35 +02:00
parent ae21cbb3ca
commit 1a7a63e433

View file

@ -31,33 +31,6 @@ let
;
};
mkWebdavOptions = { vendorName }: {
username = lib.mkOption {
type = lib.types.str;
description = "The name of the user to log in to ${vendorName}.";
};
password = lib.mkOption {
type = lib.types.nullOr lib.types.str;
description = "The password for logging in to ${vendorName}.";
default = null;
};
passwordFile = lib.mkOption {
type = lib.types.nullOr (lib.types.either lib.types.path lib.types.str);
description = "A path to a file to read the password from for logging in to ${vendorName}.";
default = null;
};
};
mkOwncloudOptions =
{ vendorName ? "Nextcloud" }: (mkWebdavOptions { inherit vendorName; }) // {
baseUrl = lib.mkOption {
type = lib.types.str;
description = "The base URL of the ${vendorName} server.";
};
};
syncProviders = {
nextcloud = mkProvider {
options = lib.types.submodule (