summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2021-01-18 22:15:27 +0100
committerAlan Pearce2021-01-18 22:15:27 +0100
commitdc666f24e73989a811d11b42685ad6d4bd54f18c (patch)
tree265ec6d5830b177487337a75fcb56f15fc5f34a1
parent3c9fdec17af0aca598d6de092b9bf24518e18978 (diff)
downloadnixfiles-dc666f24e73989a811d11b42685ad6d4bd54f18c.tar.lz
nixfiles-dc666f24e73989a811d11b42685ad6d4bd54f18c.tar.zst
nixfiles-dc666f24e73989a811d11b42685ad6d4bd54f18c.zip
darwin: install and use sekey
-rw-r--r--user/settings/darwin.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix
index 7d20099b..4f7c8870 100644
--- a/user/settings/darwin.nix
+++ b/user/settings/darwin.nix
@@ -51,8 +51,14 @@
   };
 
   programs.zsh.envExtra = ''
+    path+=/Applications/SeKey.app/Contents/MacOS
+    export SSH_AUTH_SOCK=$HOME/.sekey/ssh-agent.ssh
     SHELL_SESSIONS_DISABLE=1
   '';
+  programs.ssh.extraConfig = ''
+    IdentityAgent ~/.sekey/ssh-agent.ssh
+  '';
+
   # Use GPG from  GPGTools
   programs.git.signing.gpgPath = "/usr/local/bin/gpg";
 }