From 1114cf2cb45ec3f8595c9d34c982819bd45afff3 Mon Sep 17 00:00:00 2001 From: sils Date: Mon, 15 Jan 2024 16:13:54 +0100 Subject: move gpg home-dir to ~/.gnupg GPG (especially gpg-agent) has way too much issues with a data-dir i non-default locations. --- users/sils/gpg/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'users') diff --git a/users/sils/gpg/default.nix b/users/sils/gpg/default.nix index 79c4b33..af3dcea 100644 --- a/users/sils/gpg/default.nix +++ b/users/sils/gpg/default.nix @@ -5,7 +5,6 @@ }: { programs.gpg = { enable = true; - homedir = "${config.xdg.dataHome}/gnupg"; }; services.gpg-agent = { enable = true; @@ -21,4 +20,7 @@ SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpg-connect-agent /bye ''; + home.sessionVariables = { + GNUPGHOME = lib.mkForce ""; + }; } -- cgit 1.4.1