{ config, lib, pkgs, ... }: { config = lib.mkIf config.jalr.workstation.enable { programs = { ssh.startAgent = false; gnupg.agent = { enable = true; enableSSHSupport = true; pinentryFlavor = if config.jalr.gui.enable then "gnome3" else "tty"; }; }; services = { pcscd.enable = true; udev.packages = with pkgs; [ yubikey-personalization ]; }; environment = { systemPackages = with pkgs; [ gnupg yubikey-manager yubikey-personalization ]; }; }; }