From ec51ed1449cca66ba6cec05d5aab57c4f8cc1829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E5=9D=82=E9=9B=85?= <23130178+ShadowRZ@users.noreply.github.com> Date: Sun, 28 Jun 2026 17:10:29 +0800 Subject: [PATCH] nixos/pam/u2f: add settings.{,cue_}prompt option --- nixos/modules/security/pam.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/nixos/modules/security/pam.nix b/nixos/modules/security/pam.nix index 6cd174fabc2b..d9ac409599f6 100644 --- a/nixos/modules/security/pam.nix +++ b/nixos/modules/security/pam.nix @@ -2250,6 +2250,30 @@ in ''; }; + prompt = lib.mkOption { + default = null; + type = with lib.types; nullOr str; + description = '' + Set individual prompt message for interactive mode. + By setting this option, you can set a message to be shown by the + {option}`security.pam.u2f.settings.interactive` option. + + Requires {option}`security.pam.u2f.settings.interactive` to be set to `true`. + ''; + }; + + cue_prompt = lib.mkOption { + default = null; + type = with lib.types; nullOr str; + description = '' + Set individual prompt message for cue mode. + By setting this option, you can set a message to be shown by the + {option}`security.pam.u2f.settings.cue` option. + + Requires {option}`security.pam.u2f.settings.cue` to be set to `true`. + ''; + }; + cue = lib.mkOption { default = false; type = lib.types.bool;