add extra socket for ssh gpg stuff

ff4f79c05756… · Ryan Schanzenbacher ·

parent b7d807c39733… view tree

Changed files

FileChanges
users/ryan/common.nix +1 −0 raw
users/ryan/darwin.nix +1 −0 raw
diff --git a/users/ryan/common.nix b/users/ryan/common.nix
index b5b3533..1e188ea 100644
--- a/users/ryan/common.nix
+++ b/users/ryan/common.nix
@@ -116,6 +116,7 @@
services.gpg-agent = {
enable = pkgs.stdenv.isLinux;
enableSshSupport = true;
+ enableExtraSocket = true;
};
programs.fzf = {
diff --git a/users/ryan/darwin.nix b/users/ryan/darwin.nix
index 81f26e5..0744b2f 100644
--- a/users/ryan/darwin.nix
+++ b/users/ryan/darwin.nix
@@ -13,6 +13,7 @@
# Need special config for gpg-agent on macOS
home.file.".gnupg/gpg-agent.conf".text = ''
pinentry-program ${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac
+ extra-socket ${config.home.homeDirectory}/.gnupg/S.gpg-agent.extra
enable-ssh-support
'';