{ pkgs, config, lib, ... }: let service = "yubikey"; cfg = config.darwin.${service}; in { options.darwin.${service} = { enable = lib.mkEnableOption "enables ${service}"; }; config = lib.mkIf cfg.enable { # environment.systemPackages = with pkgs; [ # yubikey-personalization # yubikey-manager # yubikey-piv-tool # ]; homebrew = { brews = [ "yubico-piv-tool" ]; casks = [ "yubico-authenticator" ]; }; }; }