From 7bd7c0a44fd93bd0cbede4f17a6cf9eb984886a7 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 15 Nov 2022 00:37:38 +0100 Subject: [PATCH] home: setup ssh_auth_sock --- home/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home/default.nix b/home/default.nix index fa7f6ea..4c103a6 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,4 +1,4 @@ -{...}: { +{config, ...}: { imports = [ ./alacritty.nix ./bat.nix @@ -25,7 +25,10 @@ home.username = "alarsyo"; - home.sessionVariables = { + home.sessionVariables = let + gpgPackage = config.programs.gpg.package; + in { BROWSER = "firefox"; + SSH_AUTH_SOCK = "$(${gpgPackage}/bin/gpgconf --list-dirs agent-ssh-socket)"; }; }