dotfiles

feat(nix): add `ssh-use-keychain` to automate loading keys on mac

Signed-off-by: Seongmin Lee <git@boltless.me>

boltless.me 5b8045ce 80667fb9

verified
+11
+11
nix/darwin.nix
··· 36 36 StandardErrorPath = "/tmp/ollama_boltless.err"; 37 37 }; 38 38 }; 39 + # reference: https://gist.github.com/echo-dave/0d1ee6951c4e3bf00d738e84868e7d59 40 + ssh-use-keychain = { 41 + serviceConfig = { 42 + Label = "sshusekeychain"; 43 + ProgramArguments = [ "bash" "-c" "ssh-add" "--apple-load-keychain" ]; 44 + RunAtLoad = true; 45 + KeepAlive = false; 46 + StadardOutPath = "/var/log/sshusekeychain/usekeychain.log"; 47 + StadardErrorPath = "/var/log/sshusekeychain/usekeychain.log"; 48 + }; 49 + }; 39 50 }; 40 51 41 52 # Necessary for using flakes on this system.