fix: fix SSH_AUTH_SOCK value
Otherwise SSH keys from GPG aren't picked up.
This commit is contained in:
parent
4df7f5a400
commit
e7e6285bc3
|
@ -19,10 +19,9 @@
|
|||
defaultCacheTtlSsh = 600;
|
||||
pinentryFlavor = "curses";
|
||||
};
|
||||
# https://github.com/nix-community/home-manager/issues/667#issuecomment-902236379
|
||||
# https://github.com/nix-community/home-manager/pull/2253
|
||||
home.sessionVariables.SSH_AUTH_SOCK =
|
||||
"$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh";
|
||||
programs.zsh.initExtra = ''
|
||||
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh
|
||||
'';
|
||||
|
||||
programs.git.defaultProfile = "private";
|
||||
|
||||
|
|
|
@ -24,10 +24,9 @@ with pkgs; {
|
|||
defaultCacheTtlSsh = 600;
|
||||
pinentryFlavor = "gnome3";
|
||||
};
|
||||
# https://github.com/nix-community/home-manager/issues/667#issuecomment-902236379
|
||||
# https://github.com/nix-community/home-manager/pull/2253
|
||||
home.sessionVariables.SSH_AUTH_SOCK =
|
||||
"$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh";
|
||||
programs.zsh.initExtra = ''
|
||||
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh
|
||||
'';
|
||||
|
||||
programs.ssh.enable = true;
|
||||
|
||||
|
|
|
@ -30,10 +30,9 @@
|
|||
defaultCacheTtlSsh = 600;
|
||||
pinentryFlavor = "gnome3";
|
||||
};
|
||||
# https://github.com/nix-community/home-manager/issues/667#issuecomment-902236379
|
||||
# https://github.com/nix-community/home-manager/pull/2253
|
||||
home.sessionVariables.SSH_AUTH_SOCK =
|
||||
"$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh";
|
||||
programs.zsh.initExtra = ''
|
||||
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh
|
||||
'';
|
||||
|
||||
programs.ssh.enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue