20 lines
409 B
Nix
20 lines
409 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.xyno.hardware.smartcard;
|
|
in
|
|
{
|
|
options.xyno.hardware.smartcard.enable =
|
|
lib.mkEnableOption "enable stuff needed for smartcards to work right";
|
|
config = lib.mkIf cfg.enable {
|
|
services.vsmartcard-vpcd.enable = true;
|
|
hardware.gpgSmartcards.enable = true;
|
|
services.fido2-hid-bridge.enable = true;
|
|
services.pcscd.enable = true;
|
|
};
|
|
|
|
}
|