From 592e7e4bb97beb506f7fe6531a69c816dc763122 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 27 Mar 2026 01:31:21 +0100 Subject: [PATCH] Modules/SSH: Add keys to ssh-agent on nix-darwin --- home/homemodules/ssh/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;