home: setup ssh_auth_sock

This commit is contained in:
Antoine Martin 2022-11-15 00:37:38 +01:00
parent 3227363b37
commit c60c8217b3

View file

@ -1,4 +1,4 @@
{...}: {
{config, ...}: {
imports = [
./alacritty.nix
./bat.nix
@ -25,7 +25,11 @@
home.username = "alarsyo";
home.sessionVariables = {
home.sessionVariables = let
gpgPackage = config.programs.gpg.package;
in {
BROWSER = "firefox";
# FIXME: only set if gpg-agent not in use, otherwise home manager already does that
SSH_AUTH_SOCK = "$(${gpgPackage}/bin/gpgconf --list-dirs agent-ssh-socket)";
};
}