diff options
author | sefidel <contact@sefidel.net> | 2023-07-20 09:54:35 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-07-20 09:54:57 +0900 |
commit | e49a0927513033b59d7bf6f9e5a2d545fdcd52d8 (patch) | |
tree | 0910f089d18855db74ae9d43948991a9ffee8dfd /home/profiles | |
parent | 2728393ce6bb3e5f24805ddaf9dd7ce47b49c208 (diff) | |
download | nixrc-e49a0927513033b59d7bf6f9e5a2d545fdcd52d8.tar.gz nixrc-e49a0927513033b59d7bf6f9e5a2d545fdcd52d8.zip |
fix(profiles/base-darwin): fix ssh auth using pgp key
Diffstat (limited to 'home/profiles')
-rw-r--r-- | home/profiles/base-darwin/config/zsh.nix | 4 | ||||
-rw-r--r-- | home/profiles/base-darwin/default.nix | 1 |
2 files changed, 5 insertions, 0 deletions
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 = { |