2024-04-15 08:44:09 +02:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
pinentryPackage = lib.mkDefault pkgs.pinentry-curses;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
gnupg
|
2024-04-15 09:13:57 +02:00
|
|
|
yubikey-personalization
|
2024-04-15 08:44:09 +02:00
|
|
|
|
|
|
|
# Add wrapper around ssh that takes the gnupg ssh-agent
|
|
|
|
# instead of gnome-keyring
|
|
|
|
ssh-gpg
|
|
|
|
];
|
|
|
|
|
|
|
|
services.pcscd.enable = true;
|
|
|
|
|
2024-04-15 09:13:57 +02:00
|
|
|
services.udev.packages = with pkgs; [
|
|
|
|
yubikey-personalization
|
|
|
|
];
|
2024-04-15 08:44:09 +02:00
|
|
|
}
|