about summary refs log tree commit diff
path: root/home/profiles
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-11-06 16:50:13 -0800
committerFranck Cuny <franck@fcuny.net>2023-11-06 17:05:04 -0800
commitc7587b1e50d0c65c62c4f42a2e22d690560c325c (patch)
tree8b37be6f19f3289d7a81f7a8c1736cd1eda98a14 /home/profiles
parentadd a script to update local machine (diff)
downloadworld-c7587b1e50d0c65c62c4f42a2e22d690560c325c.tar.gz
use 1password ssh agent
Enable ssh configuration on darwin.
Diffstat (limited to 'home/profiles')
-rw-r--r--home/profiles/darwin.nix1
-rw-r--r--home/profiles/ssh.nix9
2 files changed, 4 insertions, 6 deletions
diff --git a/home/profiles/darwin.nix b/home/profiles/darwin.nix
index 1362691..dd20ee4 100644
--- a/home/profiles/darwin.nix
+++ b/home/profiles/darwin.nix
@@ -7,6 +7,7 @@
     ./zsh.nix
     ./dev.nix
     ./tmux.nix
+    ./ssh.nix
   ];
 
   home.packages = with pkgs; [
diff --git a/home/profiles/ssh.nix b/home/profiles/ssh.nix
index 3aa286b..47aee8a 100644
--- a/home/profiles/ssh.nix
+++ b/home/profiles/ssh.nix
@@ -6,6 +6,9 @@
     serverAliveInterval = 60;
     controlMaster = "auto";
     controlPersist = "30m";
+    extraConfig = ''
+      IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
+    '';
     matchBlocks = {
       "github.com" = {
         hostname = "github.com";
@@ -13,12 +16,6 @@
         forwardAgent = false;
         extraOptions = { preferredAuthentications = "publickey"; };
       };
-      "rsync.net" = {
-        hostname = "de2664.rsync.net";
-        user = "de2664";
-        forwardAgent = false;
-        extraOptions = { preferredAuthentications = "publickey"; };
-      };
     };
   };
 }