mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
21 lines
441 B
Nix
21 lines
441 B
Nix
{ pkgs, ...}:
|
|
|
|
{
|
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
|
|
|
programs.ssh.startAgent = true;
|
|
|
|
# FIXME Don't forget to create an authorization mapping file for your user (https://nixos.wiki/wiki/Yubikey#pam_u2f)
|
|
security.pam.u2f = {
|
|
enable = true;
|
|
cue = true;
|
|
control = "sufficient";
|
|
};
|
|
|
|
security.pam.services = {
|
|
greetd.u2fAuth = true;
|
|
sudo.u2fAuth = true;
|
|
swaylock.u2fAuth = true;
|
|
};
|
|
}
|