ssh: set SSH_AUTH_SOCK systemwide

This commit is contained in:
Bloxx12 2025-04-12 10:02:21 +02:00
commit 09d2901003
2 changed files with 3 additions and 5 deletions

View file

@ -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;