···249249 to provide Google Authenticator token to log in.250250 '';251251 };252252+ allowNullOTP = lib.mkOption {253253+ type = lib.types.bool;254254+ default = false;255255+ description = ''256256+ Whether to allow login for accounts that have no OTP set257257+ (i.e., accounts with no OTP configured or no existing258258+ {file}`~/.google_authenticator`).259259+ '';260260+ };261261+ forwardPass = lib.mkOption {262262+ type = lib.types.bool;263263+ default = false;264264+ description = ''265265+ The authentication provides a single field requiring266266+ the user's password followed by the one-time password (OTP).267267+ '';268268+ };252269 };253270254271 otpwAuth = lib.mkOption {···10651048 modulePath = "${pkgs.google-authenticator}/lib/security/pam_google_authenticator.so";10661049 settings = {10671050 no_increment_hotp = true;10511051+ forward_pass = cfg.googleAuthenticator.forwardPass;10521052+ nullok = cfg.googleAuthenticator.allowNullOTP;10681053 };10691054 }10701055 {