2.home-manager/modules
Lucas Servén Marín da077f20db
fix(service/gpg-agent): ensure SSH_AUTH_SOCK is set on Darwin (#7117)
This commit addresses https://github.com/nix-community/home-manager/issues/5997
At the root, the gpg-agent SSH integration is not working on Darwin
because shells are started with `SSH_AUTH_SOCK` already set to something
like `/private/tmp/com.apple.launchd.ozLmoURHDC/Listeners`, which
prevents the hook from setting the variable to the gpg-agent's socket.

This commit fixes the issue using a different mechanism to detect if the
current shell has already had the `SSH_AUTH_SOCK` variable set to the
gpg-agent's socket, namely by checking for `gnupg_SSH_AUTH_SOCK_by` as
documented in
https://www.gnupg.org/documentation/manuals/gnupg/Agent-Examples.html#Agent-Examples.

This is essentially a simplified version of
https://github.com/nix-community/home-manager/pull/5901 that does not
attempt to migrate gpg-agent over to launchd.

Signed-off-by: squat <lserven@gmail.com>
2025-06-28 12:30:46 -05:00
..
accounts treewide: implement auto importing for modules 2025-06-22 23:58:37 -05:00
config home-cursor: sway depend on cfg.size instead of gtk.cursorTheme.size (#7176) 2025-05-31 19:31:59 -05:00
files files: show colliding files at bottom in checkLinkTargets (#5495) 2025-05-20 21:11:16 -05:00
i18n/input-method fcitx5: ensure config doesn't get overwritten (#6940) 2025-04-30 14:19:29 -05:00
launchd treewide: lnl7 -> nix-darwin 2025-05-16 18:47:17 -05:00
lib lib/strings: add PascalCase support for toCaseWithSeperator (#7282) 2025-06-16 13:49:41 -05:00
lib-bash home-manager: move profile management 2025-01-03 11:22:59 +01:00
misc thunderbird: support declaration of calendars (#5484) 2025-06-15 19:21:02 -05:00
po Translations update from Hosted Weblate (#7244) 2025-06-09 22:29:31 -05:00
programs fix(zed): support preexisting JSON5 settings (#7317) 2025-06-24 15:48:03 -05:00
services fix(service/gpg-agent): ensure SSH_AUTH_SOCK is set on Darwin (#7117) 2025-06-28 12:30:46 -05:00
targets targets/darwin: fix ShowDate default description (#7256) 2025-06-12 20:46:23 -05:00
dbus.nix dbus: Create with pacakges options (#7064) 2025-05-15 12:59:12 -05:00
default.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
files.nix files: add home.file.<name>.ignorelinks 2025-05-11 18:53:40 -05:00
home-environment.nix home-environment: add home.extraDependencies 2025-05-02 11:11:28 +02:00
manual.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
modules.nix modules: allow root level nix files 2025-06-23 16:20:26 -05:00
systemd-activate.sh systemd: don't try to restart templates 2024-06-26 18:14:48 +02:00
systemd.nix treewide: remove unused code (#6985) 2025-05-07 10:03:21 -05:00
wayland.nix wayland: create tray.target if xsession is not enabled (#6332) 2025-02-06 22:50:03 +01:00
xresources.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
xsession.nix xsession: add xdg-desktop-autostart to requires of hm-graphical-session (#7108) 2025-05-28 22:39:21 -05:00