Skyler Grey | 4da160c | 2023-02-19 23:32:11 +0000 | [diff] [blame] | 1 | { pkgs |
| 2 | , username |
| 3 | , system |
Skyler Grey | 4da160c | 2023-02-19 23:32:11 +0000 | [diff] [blame] | 4 | , ... |
| 5 | }: { |
Skyler Grey | e335394 | 2022-10-31 00:28:44 +0000 | [diff] [blame] | 6 | config = { |
| 7 | security.pam.yubico = { |
| 8 | enable = true; |
| 9 | mode = "challenge-response"; |
| 10 | }; |
| 11 | services = { |
| 12 | udev.packages = [ pkgs.yubikey-personalization ]; |
| 13 | pcscd.enable = true; |
| 14 | }; |
| 15 | environment.persistence."/nix/persist".users.${username}.directories = [ |
| 16 | ".yubico" |
| 17 | ]; |
| 18 | }; |
| 19 | home.home.packages = with pkgs; [ |
| 20 | yubikey-personalization |
| 21 | yubico-pam |
Skyler Grey | d3848cc | 2023-02-26 12:56:45 +0000 | [diff] [blame] | 22 | yubioath-flutter |
Skyler Grey | e335394 | 2022-10-31 00:28:44 +0000 | [diff] [blame] | 23 | ]; |
| 24 | } |