nixos-configuration/modules/yubikey-gpg.nix
2023-11-08 23:35:55 +00:00

29 lines
580 B
Nix

{ 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
];
};
};
}