id-card: enable Estonian eID smart card stack

Add opensc (PKCS#11) and pcsc-tools, enable pcscd, and add a udev rule
granting access to the built-in reader (2ce3:9563), which the shipped
CCID rules miss (pcscd hit LIBUSB_ERROR_ACCESS). Configure Firefox to
load the OpenSC PKCS#11 module for TLS client-cert auth and force-install
the Web eID extension.
This commit is contained in:
Sergei Poljanski 2026-06-02 14:07:00 +03:00
commit 97d2fd6096
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
2 changed files with 20 additions and 1 deletions

View file

@ -110,6 +110,14 @@ in
programs.firefox = {
enable = true;
package = pkgs.firefox-devedition;
policies = {};
policies = {
# Estonian ID: load OpenSC PKCS#11 for TLS client-cert auth,
# and force-install the Web eID extension (talks to web-eid-app host).
SecurityDevices.OpenSC = "${pkgs.opensc}/lib/opensc-pkcs11.so";
ExtensionSettings."{e68418bc-f2b0-4459-a9ea-1a5d2b75d8e9}" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/web-eid-webextension/latest.xpi";
installation_mode = "force_installed";
};
};
};
}