config/system/yubikey.nix

25 lines
491 B
Nix
Raw Normal View History

2023-03-10 21:36:36 +00:00
sessionCommands = ''
'';
2023-03-09 08:33:38 +00:00
{ config, pkgs, ... }:
{
services.pcscd.enable = false;
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
];
}