Skyler Grey | e335394 | 2022-10-31 00:28:44 +0000 | [diff] [blame] | 1 | { 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 | } |