config/systems/desktop/yubikey.nix

18 lines
322 B
Nix
Raw Permalink Normal View History

2024-09-15 12:56:25 +01:00
{ pkgs, ... }:
{
services.pcscd.enable = true;
services.udev.packages = [ pkgs.yubikey-personalization ];
security.pam = {
services = {
login.u2fAuth = true;
doas.u2fAuth = true;
};
yubico = {
enable = true;
mode = "challenge-response";
control = "optional";
};
};
}