mirror of https://github.com/wlcx/home.git
Only use secretive ssh auth if on mac
This commit is contained in:
parent
ab89400f2a
commit
6a64411c0a
|
@ -69,5 +69,7 @@ in {
|
|||
|
||||
fzf.enable = true;
|
||||
|
||||
ssh.enable = true;
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ ... }: {
|
||||
home.sessionVariables = {
|
||||
{ pkgs, lib, ... }: {
|
||||
# Use secretive for SSH agent
|
||||
"SSH_AUTH_SOCK" =
|
||||
"/Users/$USERNAME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
||||
programs.ssh.matchBlocks.all = lib.mkIf pkgs.stdenv.isDarwin {
|
||||
host = "*";
|
||||
extraOptions."IdentityAgent" = "~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue