16 lines
No EOL
255 B
Nix
Executable file
16 lines
No EOL
255 B
Nix
Executable file
{ config, ... }:
|
|
|
|
{
|
|
# enable yubikey u2f for use with pam
|
|
security.pam = {
|
|
services = {
|
|
sudo.u2fAuth = true;
|
|
polkit-1.u2fAuth = true;
|
|
};
|
|
|
|
u2f.settings = {
|
|
authfile = "/etc/Yubico/u2f_keys";
|
|
cue = true;
|
|
};
|
|
};
|
|
} |