1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00
Files
linux-nixos-hyprland-config…/nixos/yubikey.nix
2024-02-06 22:40:34 +02:00

28 lines
549 B
Nix

{ pkgs, ...}:
{
services.udev.packages = [ pkgs.yubikey-personalization ];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
security.pam.u2f = {
enable = true;
cue = true;
control = "sufficient";
};
security.pam.services = {
greetd.u2fAuth = true;
sudo.u2fAuth = true;
swaylock.u2fAuth = true;
};
# FIXME Don't forget to create an authorization mapping file for your user (https://nixos.wiki/wiki/Yubikey#pam_u2f)
environment.systemPackages = with pkgs; [
pam_u2f
];
}