Fix CCID bundle setup: symlink entire bundle directory instead of contents

This commit is contained in:
2026-04-07 17:31:14 +02:00
parent a31d2a9465
commit 952d27ae4c

View File

@@ -16,9 +16,10 @@
# CCID driver for smartcard access (required for YubiKey CCID functionality)
# Set up the PC/SC drivers directory with CCID driver bundle
system.activationScripts.pcscdSetup = ''
mkdir -p /var/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux
# Symlink CCID driver bundle
ln -sf "${pkgs.ccid}/pcsc/drivers/ifd-ccid.bundle"/* /var/lib/pcsc/drivers/ifd-ccid.bundle/ 2>/dev/null || true
mkdir -p /var/lib/pcsc/drivers
# Symlink the entire CCID bundle (or create it if it doesn't exist)
rm -rf /var/lib/pcsc/drivers/ifd-ccid.bundle 2>/dev/null || true
ln -sf "${pkgs.ccid}/pcsc/drivers/ifd-ccid.bundle" /var/lib/pcsc/drivers/ifd-ccid.bundle
'';
# YubiKey management tools