Remove unnecessary option
This commit is contained in:
parent
ace62b0e4a
commit
c9d703464a
1 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ let
|
||||||
mkProvider
|
mkProvider
|
||||||
];
|
];
|
||||||
|
|
||||||
options.providerOptions = {
|
options = {
|
||||||
vendor = lib.mkOption {
|
vendor = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "The vendor of the WebDAV share.";
|
description = "The vendor of the WebDAV share.";
|
||||||
|
@ -103,10 +103,10 @@ let
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
{
|
{
|
||||||
inherit vendor;
|
inherit vendor;
|
||||||
url = config.providerOptions.url;
|
url = config.url;
|
||||||
}
|
}
|
||||||
(mkIfNotNull config.providerOptions.username { user = config.providerOptions.username; })
|
(mkIfNotNull config.username { user = config.username; })
|
||||||
(mkIfNotNull config.providerOptions.obscuredPassword { pass = config.providerOptions.obscuredPassword; })
|
(mkIfNotNull config.obscuredPassword { pass = config.obscuredPassword; })
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue