feat: github ssh support
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
a7dce62fca
commit
ccc0eda517
3 changed files with 14 additions and 10 deletions
|
@ -14,7 +14,7 @@ let
|
|||
gpgConf = "${inputs.gpg-base-conf}/gpg.conf";
|
||||
|
||||
gpgAgentConf = ''
|
||||
enable-ssh-support
|
||||
# enable-ssh-support
|
||||
default-cache-ttl 60
|
||||
max-cache-ttl 120
|
||||
'';
|
||||
|
@ -31,7 +31,10 @@ in
|
|||
|
||||
environment.shellInit = ''
|
||||
export GPG_TTY="$(tty)"
|
||||
export SSH_AUTH_SOCK=$(${pkgs.gnupg}/bin/gpgconf --list-dirs agent-ssh-socket)
|
||||
#export SSH_AUTH_SOCK=$(${pkgs.gnupg}/bin/gpgconf --list-dirs agent-ssh-socket)
|
||||
if test -z "$SSH_AGENT_PID"; then
|
||||
eval $(ssh-agent -s)
|
||||
fi
|
||||
|
||||
${pkgs.coreutils}/bin/timeout ${builtins.toString cfg.agentTimeout} ${pkgs.gnupg}/bin/gpgconf --launch gpg-agent
|
||||
gpg_agent_timeout_status=$?
|
||||
|
@ -45,7 +48,7 @@ in
|
|||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
enableSSHSupport = false;
|
||||
};
|
||||
|
||||
metacfg.home.file = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue