From f61258a6ae5a187b7a31d282cb2279b2abcd3fef Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 16 May 2024 00:34:29 +0200 Subject: [PATCH] Add `Owncloud` as a provider --- lib/modules/rclone.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/modules/rclone.nix b/lib/modules/rclone.nix index 68c5213..a1bfaae 100644 --- a/lib/modules/rclone.nix +++ b/lib/modules/rclone.nix @@ -129,7 +129,9 @@ let }; })); - mkOwncloudProvider = { displayName ? "Owncloud", vendor ? "owncloud" }: ( + owncloudName = "Owncloud"; + + mkOwncloudProvider = { displayName ? owncloudName, vendor ? "owncloud" }: ( { config, ... }: { imports = [ (mkWebdavProvider { inherit displayName vendor; }) @@ -156,6 +158,11 @@ let vendor = "nextcloud"; }; }; + + owncloud = { + displayName = owncloudName; + module = mkOwncloudProvider { }; + }; }; in { options = {