diff options
Diffstat (limited to 'home')
-rw-r--r-- | home/profiles/base/config/zsh-darwin-gpg-ssh.nix | 4 | ||||
-rw-r--r-- | home/profiles/base/default.nix | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/home/profiles/base/config/zsh-darwin-gpg-ssh.nix b/home/profiles/base/config/zsh-darwin-gpg-ssh.nix new file mode 100644 index 0000000..06bc1f7 --- /dev/null +++ b/home/profiles/base/config/zsh-darwin-gpg-ssh.nix @@ -0,0 +1,4 @@ +'' + export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) + gpgconf --launch gpg-agent +'' diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix index ed2e89b..bf92df5 100644 --- a/home/profiles/base/default.nix +++ b/home/profiles/base/default.nix @@ -136,6 +136,8 @@ in ]; shellAliases = config.programs.zshell.aliases; + } // lib.optionalAttrs (pkgs.stdenv.isDarwin) { + initExtra = import ./config/zsh-darwin-gpg-ssh.nix; }; zshell.aliases = { |