From 128a9d416617aeb7787d44f444fd130ae74dfb81 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 19 May 2024 01:15:36 +0200 Subject: [PATCH] Adjust options properly --- lib/modules/rclone.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/modules/rclone.nix b/lib/modules/rclone.nix index 7e5956e..9fe921a 100644 --- a/lib/modules/rclone.nix +++ b/lib/modules/rclone.nix @@ -271,8 +271,9 @@ let obscuredPasswordFile = mkPasswordFileOption { service = displayName; }; webAuthnToken = lib.mkOption { - type = lib.types.strMatching "[0-9]{6}"; + type = lib.types.nullOr (lib.types.strMatching "[0-9]{6}"); description = "The 2 Factor Authentication code for logging in to ${displayName}."; + default = null; }; webAuthnTokenFile = mkFileOption {