nix: use an absolute path for GNUPGHOME
authorJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Wed, 17 Apr 2024 15:58:31 +0000 (17:58 +0200)
committerJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Wed, 17 Apr 2024 15:58:31 +0000 (17:58 +0200)
shell.nix

index 07ae66305f03a76c0d681e646b856a8cbb3c281a..77bee1f1f0a2fc8740d835713b99646ad21d0707 100644 (file)
--- a/shell.nix
+++ b/shell.nix
@@ -127,7 +127,6 @@ pkgs.mkShell {
   ];
   #enableParallelBuilding = true;
 
-  GNUPGHOME = shell.gnupg.gnupgHome;
   NIX_PATH = pkgs.lib.concatStringsSep ":" [
     "nixpkgs=${pkgs.path}"
     ("nixpkgs-overlays=" + pkgs.writeText "overlays.nix" ''
@@ -142,6 +141,7 @@ pkgs.mkShell {
     ${shell.nix-shell.shellHook}
 
     # gpg
+    export GNUPGHOME=$(realpath -e ${shell.gnupg.gnupgHome});
     export GPG_TTY=$(tty)
     gpg-connect-agent updatestartuptty /bye >/dev/null