From e49a0927513033b59d7bf6f9e5a2d545fdcd52d8 Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 20 Jul 2023 09:54:35 +0900 Subject: fix(profiles/base-darwin): fix ssh auth using pgp key --- home/profiles/base-darwin/config/zsh.nix | 4 ++++ home/profiles/base-darwin/default.nix | 1 + 2 files changed, 5 insertions(+) create mode 100644 home/profiles/base-darwin/config/zsh.nix diff --git a/home/profiles/base-darwin/config/zsh.nix b/home/profiles/base-darwin/config/zsh.nix new file mode 100644 index 0000000..06bc1f7 --- /dev/null +++ b/home/profiles/base-darwin/config/zsh.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-darwin/default.nix b/home/profiles/base-darwin/default.nix index cb8cab3..c09c66b 100644 --- a/home/profiles/base-darwin/default.nix +++ b/home/profiles/base-darwin/default.nix @@ -117,6 +117,7 @@ in ]; shellAliases = config.programs.zshell.aliases; + initExtra = import ./config/zsh.nix; }; zshell.aliases = { -- cgit 1.4.1