yubikey: add u2f for sudo

This commit is contained in:
Ingolf Wagner 2020-01-15 21:29:01 +13:00
parent 1a2ac3e0ee
commit 35490e2116
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -2,6 +2,7 @@
# * https://github.com/drduh/YubiKey-Guide
# * https://nixos.wiki/wiki/Yubikey
{ pkgs, ... }: {
services.pcscd.enable = true;
services.udev.packages = [
@ -46,4 +47,8 @@
};
};
# use for pam (sudo)
# --------------------------
security.pam.u2f.enable = true;
security.pam.u2f.authFile = toString <desktop_secrets/yubikey/u2fAuthFile>;
}