Adjust options properly

This commit is contained in:
Manuel Thalmann 2024-05-19 01:15:36 +02:00
parent cbcae30c12
commit 128a9d4166

View file

@ -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 {