diff --git a/lib/modules/rclone.nix b/lib/modules/rclone.nix index 5a93f2b..7f8f87f 100644 --- a/lib/modules/rclone.nix +++ b/lib/modules/rclone.nix @@ -67,7 +67,7 @@ let mkProvider ]; - options.providerOptions = { + options = { vendor = lib.mkOption { type = lib.types.str; description = "The vendor of the WebDAV share."; @@ -103,10 +103,10 @@ let config = lib.mkMerge [ { inherit vendor; - url = config.providerOptions.url; + url = config.url; } - (mkIfNotNull config.providerOptions.username { user = config.providerOptions.username; }) - (mkIfNotNull config.providerOptions.obscuredPassword { pass = config.providerOptions.obscuredPassword; }) + (mkIfNotNull config.username { user = config.username; }) + (mkIfNotNull config.obscuredPassword { pass = config.obscuredPassword; }) ]; }; }));