nix: shell: fix PASSWORD_STORE_DIR
authorJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Fri, 7 Oct 2022 22:06:41 +0000 (00:06 +0200)
committerJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Sat, 8 Oct 2022 12:05:59 +0000 (14:05 +0200)
shell.nix

index efd1eadc869548248882454cbb70b5d284b23ede..9206ede86f966b56f29110de3d08912ce0c2c660 100644 (file)
--- a/shell.nix
+++ b/shell.nix
@@ -145,7 +145,6 @@ pkgs.mkShell {
   ];
   #enableParallelBuilding = true;
 
-  PASSWORD_STORE_DIR = "pass";
   GNUPGHOME = shell.gnupg.gnupgHome;
   NIX_PATH = pkgs.lib.concatStringsSep ":" [
     "nixpkgs=${pkgs.path}"
@@ -169,5 +168,8 @@ pkgs.mkShell {
     # gpg
     export GPG_TTY=$(tty)
     gpg-connect-agent updatestartuptty /bye >/dev/null
+
+    # pass
+    export PASSWORD_STORE_DIR="$PWD"/pass
   '';
 }