yubikey: remove unnecessary conditional and add u2f settings

This commit is contained in:
wo2wz 2025-10-22 22:40:14 -04:00
parent 89ac1c676d
commit 4d97821492

View file

@ -2,8 +2,15 @@
{
# enable yubikey u2f for use with pam
security.pam.services = {
security.pam = {
services = {
sudo.u2fAuth = true;
polkit-1.u2fAuth = if config.services.desktopManager.plasma6.enable then true else false;
polkit-1.u2fAuth = true;
};
u2f.settings = {
authfile = "/etc/Yubico/u2f_keys";
cue = true;
};
};
}