Setup CCID driver bundle directory and add ccid to udev packages
This commit is contained in:
@@ -11,10 +11,18 @@
|
|||||||
services.udev.packages = with pkgs; [
|
services.udev.packages = with pkgs; [
|
||||||
yubikey-personalization
|
yubikey-personalization
|
||||||
libu2f-host
|
libu2f-host
|
||||||
|
ccid
|
||||||
];
|
];
|
||||||
|
|
||||||
# CCID driver for smartcard access (required for YubiKey CCID functionality)
|
# CCID driver for smartcard access (required for YubiKey CCID functionality)
|
||||||
services.pcscd.plugins = [ pkgs.ccid ];
|
# Set up the PC/SC drivers directory with CCID driver bundle
|
||||||
|
system.activationScripts.pcscdSetup = ''
|
||||||
|
mkdir -p /var/lib/pcsc/drivers/ccid.bundle
|
||||||
|
# Try to symlink CCID bundle files if they exist
|
||||||
|
if [ -d "${pkgs.ccid}/lib/pcsc/drivers/ccid.bundle" ]; then
|
||||||
|
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
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
Reference in New Issue
Block a user