From 5022fd81034770dd80d24647f854993b6717f511 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Wed, 15 May 2024 18:48:56 +0200
Subject: [PATCH] Add further WebDAV options

---
 lib/modules/rclone.nix | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/lib/modules/rclone.nix b/lib/modules/rclone.nix
index 2255fb1..6c24b4e 100644
--- a/lib/modules/rclone.nix
+++ b/lib/modules/rclone.nix
@@ -54,6 +54,24 @@ let
           type = lib.types.str;
           description = "The WebDAV URL of the ${vendorName} server to connect to.";
         };
+
+        username = lib.mkOption {
+          type = lib.types.nullOr lib.types.str;
+          description = "The user name for logging in to the ${vendorName} server.";
+          default = null;
+        };
+
+        obscuredPassword = lib.mkOption {
+          type = lib.types.nullOr lib.types.str;
+          description = "The password obscured using the `rclone obscure` command for logging in to the ${vendorName} server.";
+          default = null;
+        };
+
+        obscuredPasswordFile = lib.mkOption {
+          type = lib.types.nullOr (lib.types.either lib.types.path lib.types.str);
+          description = "The path to a file containing the password obscured using the `rclone obscure` command for logging in to the ${vendorName} server.";
+          default = null;
+        };
       };
     });