summaryrefslogtreecommitdiff
path: root/sys/hardware/yubico.nix
blob: a3440c35fbede7982c66b4f9c02fd48727b5ea33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ config, lib, pkgs, ... }:
with lib; let
  cfg = config.local.hardware.yubico;
in
{
  options.local.hardware.yubico = {
    enable = mkEnableOption "Yubico hardware support";
  };

  config = mkIf cfg.enable {
    services.pcscd.enable = true;
    services.udev.packages = [ pkgs.yubikey-personalization ];
  };
}