config/systems/desktop/yubikey.nix

23 lines
453 B
Nix
Raw Normal View History

2023-03-09 08:33:38 +00:00
{ config, pkgs, ... }:
{
2023-03-29 06:58:29 +01:00
services.pcscd.enable = true;
2023-03-09 08:33:38 +00:00
services.udev.packages = [ pkgs.yubikey-personalization pkgs.android-udev-rules ];
security.pam = {
services = {
login.u2fAuth = true;
doas.u2fAuth = true;
};
yubico = {
enable = true;
mode = "challenge-response";
control = "optional";
};
};
environment.systemPackages = with pkgs; [
yubioath-flutter
yubikey-personalization
];
}