Merge pull request #238474 from SuperSandro2000/pcscd

nixos/pcscd: suggest yubikey-personalization, fix restartTriggers
This commit is contained in:
Nick Cao 2024-01-14 12:09:04 -05:00 committed by GitHub
commit 0c16e12d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,16 +16,13 @@ let
in
{
###### interface
options.services.pcscd = {
enable = mkEnableOption (lib.mdDoc "PCSC-Lite daemon");
plugins = mkOption {
type = types.listOf types.package;
defaultText = literalExpression "[ pkgs.ccid ]";
example = literalExpression "[ pkgs.pcsc-cyberjack ]";
example = literalExpression "with pkgs; [ pcsc-cyberjack yubikey-personalization ]";
description = lib.mdDoc "Plugin packages to be used for PCSC-Lite.";
};
@ -46,10 +43,7 @@ in
};
};
###### implementation
config = mkIf config.services.pcscd.enable {
environment.etc."reader.conf".source = cfgFile;
environment.systemPackages = [ package ];
@ -61,7 +55,6 @@ in
systemd.services.pcscd = {
environment.PCSCLITE_HP_DROPDIR = pluginEnv;
restartTriggers = [ "/etc/reader.conf" ];
# If the cfgFile is empty and not specified (in which case the default
# /etc/reader.conf is assumed), pcscd will happily start going through the