🚀 enable ssh support for yubikey
This commit is contained in:
parent
fcc03ca88c
commit
64891e10cb
2 changed files with 9 additions and 3 deletions
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
{
|
||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||
environment.shellInit = ''
|
||||
export GPG_TTY="$(tty)"
|
||||
gpg-connect-agent /bye
|
||||
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
|
||||
'';
|
||||
home-manager.users.moritz.home.packages = with pkgs; [
|
||||
# cli
|
||||
yubikey-manager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue