Skip to content

Commit

Permalink
configure ssh identityagent
Browse files Browse the repository at this point in the history
  • Loading branch information
elohmeier committed Nov 14, 2024
1 parent 0881972 commit 8495887
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions modules/home/macos-enno.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let
mkdir -p $out/share
cp -r ${pkgs.docker}/share/{bash-completion,fish,zsh} $out/share/
'';
secretiveSocket = "${config.home.homeDirectory}/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
in
{
home = {
Expand All @@ -17,11 +18,22 @@ in
"${config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/repos/ptsd/bin"}"
"/opt/homebrew/bin"
];
sessionVariables = {

# from https://github.com/wagoodman/dive/issues/542#issuecomment-2352251218
DOCKER_HOST = "unix://${config.home.homeDirectory}/.orbstack/run/docker.sock";

SSH_AUTH_SOCK = secretiveSocket;
};
stateVersion = "21.11";
};

# from https://github.com/wagoodman/dive/issues/542#issuecomment-2352251218
home.sessionVariables.DOCKER_HOST = "unix://${config.home.homeDirectory}/.orbstack/run/docker.sock";
programs.ssh = {
enable = true;
extraConfig = ''
IdentityAgent ${secretiveSocket}
'';
};

home.packages =
[
Expand Down Expand Up @@ -95,8 +107,6 @@ in

programs.fish.shellAbbrs.hm = "home-manager --flake ${config.home.homeDirectory}/repos/ptsd/.#macos-enno --impure";

home.sessionVariables.SSH_AUTH_SOCK = "${config.home.homeDirectory}/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";

launchd.agents.cleanup-downloads = {
enable = true;
config = {
Expand Down

0 comments on commit 8495887

Please sign in to comment.