diff --git a/home/homemodules/ssh/default.nix b/home/homemodules/ssh/default.nix index 9a1f9e40..c8f9af06 100644 --- a/home/homemodules/ssh/default.nix +++ b/home/homemodules/ssh/default.nix @@ -18,7 +18,10 @@ in { matchBlocks = { "*" = { forwardAgent = false; - addKeysToAgent = "no"; + addKeysToAgent = + if pkgs.stdenv.isLinux + then "no" + else "yes"; # Don't have keychain on darwin compression = true; serverAliveInterval = 0; serverAliveCountMax = 3;