diff options
author | sefidel <contact@sefidel.net> | 2023-07-26 14:13:25 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-07-26 17:10:22 +0900 |
commit | 493fe48c5e1042e05d66f4d5c243cc201d1b021c (patch) | |
tree | 99d82e85f2c152fee5835c15a3d5a252a4ac8b89 /home/profiles/base | |
parent | 747e11903f5c3bb002a913c76583b65eeabf8aa7 (diff) | |
download | nixrc-493fe48c5e1042e05d66f4d5c243cc201d1b021c.tar.gz nixrc-493fe48c5e1042e05d66f4d5c243cc201d1b021c.zip |
fix(home/base): fix broken gpg-ssh on darwin
Diffstat (limited to 'home/profiles/base')
-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 = { |