From e53213457d285d0c52af2b0cf9b1cf18f0e055a8 Mon Sep 17 00:00:00 2001 From: Johannes Emerich Date: Wed, 29 Apr 2026 16:05:02 +0200 Subject: [PATCH] Add pcscd plugin for newer ACS smart card readers CCID[^1], used by pcscd out of the box supports various ACS[^2] readers, but some newer readers are not (yet) supported. ACS maintains a fork of CCID at https://github.com/acshk/acsccid[^3] which adds support for more of their readers. This change will only really have the desired effect after updating Nixpkgs to 25.11 (https://github.com/dividat/playos/pull/303), at which point acsccid v1.1.13 will be brought in, which supports the ACS WalletMate II series (since v1.1.11). [^1]: https://ccid.apdu.fr/ [^2]: https://www.acs.com.hk/ [^3]: Sourceforge link in case GitHub is down: https://acsccid.sourceforge.io/ --- application.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application.nix b/application.nix index 536f4ef10..0c11d283a 100644 --- a/application.nix +++ b/application.nix @@ -326,7 +326,13 @@ rec { playos.controller.annotateDiscoveredServices = [ "_sensoControl._tcp" "_sensoUpdate._udp" ]; # Enable pcscd for smart card identification - services.pcscd.enable = true; + services.pcscd = { + enable = true; + + # Support newer ACS readers (ACS-maintained; https://github.com/acshk/acsccid) + plugins = [ pkgs.acsccid ]; + }; + # Allow play user to access pcsc security.polkit.extraConfig = '' polkit.addRule(function(action, subject) {