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