A systemd service that keeps pinging pcscd every 4 seconds in order to prevent shutdown. In practice, I use this with Yubikeys and age-plugin-yubikey to resolve PIN being requested all the time issue.
Original python script by @LudovicRousseau from here
If you're on NixOS and on flakes, add this repo in your flake inputs:
inputs.pcscd-keep-alive.url = github:supermarin/pcscd-keep-alive;
Then include the module:
nixosConfigurations.computer = inputs.nixpkgs.lib.nixosSystem {
modules = [
inputs.pcscd-keep-alive.nixosModules.pcscd-keep-alive
# ...
];
# ...
};
And in your configuration.nix:
services.pcscd-keep-alive.enable = true;