ssh: set SSH_AUTH_SOCK systemwide
This commit is contained in:
parent
863eb41a1d
commit
09d2901003
2 changed files with 3 additions and 5 deletions
|
@ -3,11 +3,10 @@
|
|||
in {
|
||||
options.modules.programs.ssh.enable = mkEnableOption "ssh";
|
||||
config = {
|
||||
# set the ssh socket globally. This alows all applications and shells to use
|
||||
# the ssh-agent.
|
||||
environment.sessionVariables.SSH_AUTH_SOCK = "/run/user/1000/ssh-agent";
|
||||
programs.ssh.startAgent = true;
|
||||
# programs.ssh.pubkeyAcceptedKeyTypes = [
|
||||
# "ssh-rsa"
|
||||
# "ecdsa-sha2-nistp521"
|
||||
# ];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
|
|
@ -28,7 +28,6 @@ in
|
|||
buildInputs = [pkgs.makeWrapper];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/fish --set STARSHIP_CONFIG "${toml.generate "starship.toml" starship-config}" \
|
||||
--set SSH_AUTH_SOCK /run/user/1000/ssh-agent \
|
||||
'';
|
||||
})
|
||||
.overrideAttrs (_: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue