home: setup ssh_auth_sock

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

View file

@ -1,4 +1,4 @@
{...}: { {config, ...}: {
imports = [ imports = [
./alacritty.nix ./alacritty.nix
./bat.nix ./bat.nix
@ -25,7 +25,10 @@
home.username = "alarsyo"; home.username = "alarsyo";
home.sessionVariables = { home.sessionVariables = let
gpgPackage = config.programs.gpg.package;
in {
BROWSER = "firefox"; BROWSER = "firefox";
SSH_AUTH_SOCK = "$(${gpgPackage}/bin/gpgconf --list-dirs agent-ssh-socket)";
}; };
} }