From 445df7eb5baaca3e1cb78e01c3127a1c80734a04 Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Sat, 4 Jan 2025 23:50:24 -0600 Subject: [PATCH] fixed identities not being found automatically --- modules/home-manager-modules/openssh.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/home-manager-modules/openssh.nix b/modules/home-manager-modules/openssh.nix index 12107c8..df78828 100644 --- a/modules/home-manager-modules/openssh.nix +++ b/modules/home-manager-modules/openssh.nix @@ -44,7 +44,10 @@ programs.ssh = { enable = true; compression = true; - addKeysToAgent = "prompt"; + addKeysToAgent = "confirm"; + extraConfig = lib.strings.concatLines ( + builtins.map (hostKey: "IdentityFile ~/.ssh/${hostKey.path}") config.programs.openssh.hostKeys + ); }; systemd.user.services = builtins.listToAttrs (