nixos-config/modules/common/yubikey.nix
2025-07-25 10:55:20 -04:00

9 lines
No EOL
213 B
Nix
Executable file

{ config, ... }:
{
# enable yubikey u2f for use with pam
security.pam.services = {
sudo.u2fAuth = true;
polkit-1.u2fAuth = if config.services.desktopManager.plasma6.enable then true else false;
};
}