{ pkgs, ... }: { programs = { yubikey-touch-detector = { enable = true; libnotify = true; }; }; services = { yubikey-agent.enable = true; }; # see `modules/home/yubikeys.nix` for the YubiKey # universal second factor (u2f) configuration file. security = { pam = { services = { login.u2fAuth = true; sudo.u2fAuth = true; }; mount.enable = true; }; }; environment.systemPackages = with pkgs; [ yubikey-manager yubikey-manager-qt yubikey-personalization yubikey-personalization-gui yubikey-touch-detector # install icon age-plugin-yubikey pam_u2f ]; }