services/ssh: drop SSH_AUTH_SOCK env var, disable ssh.startAgent

This commit is contained in:
Bloxx12 2025-07-19 00:00:17 +02:00
commit 655626c237
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw

View file

@ -3,11 +3,6 @@
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;
services.openssh = {
enable = true;
ports = [22];