diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-07-28 00:41:29 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-07-28 13:09:41 -0600 |
| commit | baf553ca73b842062aaf957a227fcb18ebfdf5ae (patch) | |
| tree | 5f2915064f3ab0ab274a58aa096876866d71525a | |
| parent | 9010a54874fa52fbeab95a5952dbaa420fe79331 (diff) | |
sys/hardware/yubico: add PKCS#11 library to environment
Diffstat (limited to '')
| -rw-r--r-- | sys/hardware/yubico.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/hardware/yubico.nix b/sys/hardware/yubico.nix index a3440c3..0078210 100644 --- a/sys/hardware/yubico.nix +++ b/sys/hardware/yubico.nix @@ -8,7 +8,13 @@ in }; config = mkIf cfg.enable { - services.pcscd.enable = true; - services.udev.packages = [ pkgs.yubikey-personalization ]; + environment.etc."pkcs11/modules/ykcs11".text = '' + module: ${pkgs.yubico-piv-tool}/lib/libykcs11.so + ''; + + services = { + pcscd.enable = true; + udev.packages = [ pkgs.yubikey-personalization ]; + }; }; } |
