From c7587b1e50d0c65c62c4f42a2e22d690560c325c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 6 Nov 2023 16:50:13 -0800 Subject: use 1password ssh agent Enable ssh configuration on darwin. --- home/profiles/darwin.nix | 1 + home/profiles/ssh.nix | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'home/profiles') 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"; }; - }; }; }; } -- cgit 1.4.1