fix(client): simply ssh-agent config and fix for wsl
This commit is contained in:
parent
373e2dd386
commit
f213c33012
3 changed files with 22 additions and 22 deletions
|
@ -1,13 +0,0 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
environment.sessionVariables = {
|
||||
SSH_AUTH_SOCK = "\${XDG_RUNTIME_DIR}/ssh-agent";
|
||||
SSH_ASKPASS_REQUIRE = "prefer";
|
||||
};
|
||||
|
||||
systemd.user.services.ssh-agent = {
|
||||
wantedBy = [ "default.target" ];
|
||||
environment.SSH_AUTH_SOCK = "%t/ssh-agent";
|
||||
script = "${lib.getExe' pkgs.openssh "ssh-agent"} -d -a $SSH_AUTH_SOCK";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue