nixos-dotfiles/home/yubikey-ssh.nix

18 lines
441 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
services.udev.packages = [ pkgs.yubikey-personalization ];
# Depending on the details of your configuration, this section might be necessary or not;
# feel free to experiment
2024-05-05 18:53:09 +00:00
# environment.shellInit = ''
# export GPG_TTY="$(tty)"
# gpg-connect-agent /bye
# export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
# '';
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
}