Files
nixos-config/nixos/modules/security.nix
T
2025-12-12 21:42:42 +03:00

23 lines
509 B
Nix

{ config, pkgs, lib, ... }:
{
services.udev.packages = [ pkgs.yubikey-personalization ];
environment.systemPackages = with pkgs; [
fprintd
yubioath-flutter
yubikey-manager
pam_u2f
];
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
# enableSSHSupport = true;
};
# services.yubikey-agent.enable = true;
services.fprintd.enable = true;
security.pam.services.sudo.fprintAuth = true;
security.pam.services.login.fprintAuth = lib.mkForce true;
}