summary refs log tree commit diff stats
path: root/users/sils/gpg
diff options
context:
space:
mode:
authorsils <sils@sils.li>2024-01-15 16:13:54 +0100
committersils <sils@sils.li>2024-01-15 16:13:54 +0100
commit1114cf2cb45ec3f8595c9d34c982819bd45afff3 (patch)
tree74deff88179342bc612bcccb9dd058a7beba4e62 /users/sils/gpg
parentsys/services/restic: trigger first backup 30min after system awakens (diff)
downloadnix-config-1114cf2cb45ec3f8595c9d34c982819bd45afff3.tar.gz
nix-config-1114cf2cb45ec3f8595c9d34c982819bd45afff3.zip
move gpg home-dir to ~/.gnupg
GPG (especially gpg-agent) has way too much issues with a data-dir i
non-default locations.
Diffstat (limited to 'users/sils/gpg')
-rw-r--r--users/sils/gpg/default.nix4
1 files changed, 3 insertions, 1 deletions
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 "";
+  };
 }