From 85147a4fd6d956e913e4d6e9091c039121f6c2dc Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Thu, 25 Jul 2024 16:19:46 +0200 Subject: [PATCH] home.workmac: enable 1Password SSH agent integration --- home/workmac.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/home/workmac.nix b/home/workmac.nix index 8899e9f..043a0f0 100644 --- a/home/workmac.nix +++ b/home/workmac.nix @@ -3,6 +3,7 @@ inputs, config, system, + lib, ... }: @@ -30,15 +31,20 @@ in enable = true; # ssh host config matchBlocks = { - "hydra01" = { + + "*" = { + extraOptions.IdentityAgent = "\"~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock\""; + }; + + "hydra01" = lib.hm.dag.entryAfter ["*"] { hostname = "hydra01.access.whq.gocept.net"; user = "os"; }; - "fcio-whq-jump" = { + "fcio-whq-jump" = lib.hm.dag.entryAfter ["*"] { hostname = "vpn-whq.services.fcio.net"; extraOptions.LogLevel = "Verbose"; }; - "fcio-rzob-jump" = { + "fcio-rzob-jump" = lib.hm.dag.entryAfter ["*"] { hostname = "vpn-rzob.services.fcio.net"; }; };