Remove unnecessary option

This commit is contained in:
Manuel Thalmann 2024-05-15 23:24:54 +02:00
parent ace62b0e4a
commit c9d703464a

View file

@ -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; })
]; ];
}; };
})); }));