From 493fe48c5e1042e05d66f4d5c243cc201d1b021c Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 26 Jul 2023 14:13:25 +0900 Subject: fix(home/base): fix broken gpg-ssh on darwin --- home/profiles/base/config/zsh-darwin-gpg-ssh.nix | 4 ++++ home/profiles/base/default.nix | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 home/profiles/base/config/zsh-darwin-gpg-ssh.nix (limited to 'home/profiles/base') 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 = { -- cgit 1.4.1