blob: dcccfbd96c0dc19be2e6fb1423add9fda82e9803 [file] [log] [blame]
Skyler Grey4da160c2023-02-19 23:32:11 +00001{ pkgs
2, username
3, system
4, nixpkgs-yubioath-flutter
5, ...
6}: {
Skyler Greye3353942022-10-31 00:28:44 +00007 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 Grey4da160c2023-02-19 23:32:11 +000023 nixpkgs-yubioath-flutter.legacyPackages.${system}.yubioath-flutter
Skyler Greye3353942022-10-31 00:28:44 +000024 ];
25}