From 5b8045ce44d35c158cc0451e65d68c85b35561a2 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Sun, 23 Nov 2025 22:49:28 +0900 Subject: [PATCH] feat(nix): add `ssh-use-keychain` to automate loading keys on mac Signed-off-by: Seongmin Lee --- nix/darwin.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nix/darwin.nix b/nix/darwin.nix index a32b53d..62e581d 100644 --- a/nix/darwin.nix +++ b/nix/darwin.nix @@ -36,6 +36,17 @@ StandardErrorPath = "/tmp/ollama_boltless.err"; }; }; + # reference: https://gist.github.com/echo-dave/0d1ee6951c4e3bf00d738e84868e7d59 + ssh-use-keychain = { + serviceConfig = { + Label = "sshusekeychain"; + ProgramArguments = [ "bash" "-c" "ssh-add" "--apple-load-keychain" ]; + RunAtLoad = true; + KeepAlive = false; + StadardOutPath = "/var/log/sshusekeychain/usekeychain.log"; + StadardErrorPath = "/var/log/sshusekeychain/usekeychain.log"; + }; + }; }; # Necessary for using flakes on this system. -- 2.51.2