Update modules/workspace/ssh.nix

This commit is contained in:
Alexander Bantyev 2020-03-02 01:02:06 +03:00
parent 4d5c726575
commit b123e5378c
1 changed files with 1 additions and 1 deletions

View File

@ -12,11 +12,11 @@
services.udev.packages = [ pkgs.yubikey-personalization ];
home-manager.users.balsoft.home.sessionVariables.SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh";
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.balsoft.home.file.".gnupg/scdaemon.conf".text = "reader-port Yubico Yubi";