From c9d703464a946817c5523da24947a5c389784cd7 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 15 May 2024 23:24:54 +0200 Subject: [PATCH] Remove unnecessary option --- lib/modules/rclone.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }) ]; }; }));