diff --git a/shell.nix b/shell.nix
index 6d32a6fc4..a4ccc3187 100644
--- a/shell.nix
+++ b/shell.nix
@@ -276,7 +276,7 @@ in pkgs.stdenv.mkDerivation {
   name = "stockholm";
   shellHook = /* sh */ ''
     export OLD_PATH="$PATH"
-    export NIX_PATH=stockholm=$PWD:nixpkgs=${toString <nixpkgs>}
+    export NIX_PATH=stockholm=${toString ./.}:nixpkgs=${toString <nixpkgs>}
     if test -e /nix/var/nix/daemon-socket/socket; then
       export NIX_REMOTE=daemon
     fi