all repos — nixfiles @ aec14387c6651a4a067ef2ece4105210feeb4bc9

System and user configuration, managed by nix and home-manager

Use Strongbox as an SSH agent instead of Secretive

Alan Pearce
commit

aec14387c6651a4a067ef2ece4105210feeb4bc9

parent

baef3925a7a9efecd1c666c0cbb8b3a9b7e19d34

1 file changed, 13 insertions(+), 1 deletion(-)

changed files
M user/settings/darwin.nixuser/settings/darwin.nix
@@ -1,5 +1,6 @@
{ config , pkgs +, lib , ... }: { nixpkgs.overlays = [
@@ -141,7 +142,18 @@ SHELL_SESSIONS_DISABLE=1
path+=($HOME/Library/Python/3.9/bin) ''; programs.ssh.extraConfig = '' - IdentityAgent /Users/alan/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh + IdentityAgent ~/.strongbox/agent.sock + ''; + home.activation.linkStrongboxSSHAgentSocket = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + if [[ ! -d ~/.strongbox ]] + then + $DRY_RUN_CMD mkdir ~/.strongbox + fi + if [[ ! -S ~/.strongbox/agent.sock ]] + then + $DRY_RUN_CMD ln -s $VERBOSE_ARG \ + ~/Library/Group\ Containers/group.strongbox.mac.mcguill/agent.sock ~/.strongbox/agent.sock + fi ''; # Use GPG from GPGTools