Fix CCID driver path: use ifd-ccid.bundle and correct pcsc directory location

This commit is contained in:
2026-04-07 17:28:19 +02:00
parent fae75df867
commit a31d2a9465

View File

@@ -16,11 +16,9 @@
# CCID driver for smartcard access (required for YubiKey CCID functionality) # CCID driver for smartcard access (required for YubiKey CCID functionality)
# Set up the PC/SC drivers directory with CCID driver bundle # Set up the PC/SC drivers directory with CCID driver bundle
system.activationScripts.pcscdSetup = '' system.activationScripts.pcscdSetup = ''
mkdir -p /var/lib/pcsc/drivers/ccid.bundle mkdir -p /var/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux
# Try to symlink CCID bundle files if they exist # Symlink CCID driver bundle
if [ -d "${pkgs.ccid}/lib/pcsc/drivers/ccid.bundle" ]; then ln -sf "${pkgs.ccid}/pcsc/drivers/ifd-ccid.bundle"/* /var/lib/pcsc/drivers/ifd-ccid.bundle/ 2>/dev/null || true
ln -sf "${pkgs.ccid}/lib/pcsc/drivers/ccid.bundle"/* /var/lib/pcsc/drivers/ccid.bundle/ 2>/dev/null || true
fi
''; '';
# YubiKey management tools # YubiKey management tools