From 8b2e483e6d72ab174af1c52f1c01ebcf4a05baa2 Mon Sep 17 00:00:00 2001 From: Elias Kohout Date: Tue, 7 Apr 2026 17:34:26 +0200 Subject: [PATCH] Add explicit pcscd reader.conf configuration for CCID driver --- nixos/modules/yubikey.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/modules/yubikey.nix b/nixos/modules/yubikey.nix index 9bb79f3..c2a42cc 100644 --- a/nixos/modules/yubikey.nix +++ b/nixos/modules/yubikey.nix @@ -22,6 +22,14 @@ ln -sf "${pkgs.ccid}/pcsc/drivers/ifd-ccid.bundle" /var/lib/pcsc/drivers/ifd-ccid.bundle ''; + # Explicitly configure pcscd reader for CCID devices (YubiKey) + environment.etc."reader.conf.d/yubikey-ccid.conf".text = '' + # YubiKey FIDO+CCID reader configuration + DEVICENAME /dev/null + LIBPATH ${pkgs.ccid}/lib/libccid.so + CHANNELID 0 + ''; + # YubiKey management tools environment.systemPackages = with pkgs; [ yubikey-manager # ykman CLI