From f37249c46cc498679da5680cf207130c76e49f35 Mon Sep 17 00:00:00 2001 From: moons-14 Date: Thu, 18 Jun 2026 07:08:26 +0900 Subject: [PATCH] ssh-agent --- modules/applications/ssh/home.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/applications/ssh/home.nix b/modules/applications/ssh/home.nix index 8c72c56..2e6fb98 100644 --- a/modules/applications/ssh/home.nix +++ b/modules/applications/ssh/home.nix @@ -20,6 +20,20 @@ in pkgs.openssh ]; + systemd.user.services.ssh-agent = { + Unit.Description = "OpenSSH authentication agent"; + Service = { + ExecStart = "${pkgs.openssh}/bin/ssh-agent -D -a %t/ssh-agent"; + }; + Install.WantedBy = [ "default.target" ]; + }; + + systemd.user.sockets.gcr-ssh-agent.Install.WantedBy = lib.mkForce [ ]; + + home.sessionVariables = { + SSH_AUTH_SOCK = "\${XDG_RUNTIME_DIR}/ssh-agent"; + }; + programs.ssh = { enable = true; enableDefaultConfig = false;