blob: 93af310cb16795eb4fa257cf92ca5715b481fccf [file] [log] [blame]
Skyler Greye3353942022-10-31 00:28:44 +00001{ pkgs, username, ... }: {
2 config = {
3 security.pam.yubico = {
4 enable = true;
5 mode = "challenge-response";
6 };
7 services = {
8 udev.packages = [ pkgs.yubikey-personalization ];
9 pcscd.enable = true;
10 };
11 environment.persistence."/nix/persist".users.${username}.directories = [
12 ".yubico"
13 ];
14 };
15 home.home.packages = with pkgs; [
16 yubikey-personalization
17 yubico-pam
18 yubioath-desktop
19 ];
20}