Remove unnecessary code segments
This commit is contained in:
parent
ae21cbb3ca
commit
1a7a63e433
1 changed files with 0 additions and 27 deletions
|
@ -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 = {
|
syncProviders = {
|
||||||
nextcloud = mkProvider {
|
nextcloud = mkProvider {
|
||||||
options = lib.types.submodule (
|
options = lib.types.submodule (
|
||||||
|
|
Loading…
Reference in a new issue