Spyder - python interpreter # Invalid file path

an enviroment incl. python3.9 is created - via nix-shell

ls -lah /nix/store/gnj076wl07n9g1cn4cvm2c84b6yp2bvf-buildEnvJL/bin/python*
lrwxrwxrwx 1 root root 73 Jan  1  1970 /nix/store/gnj076wl07n9g1cn4cvm2c84b6yp2bvf-buildEnvJL/bin/python -> /nix/store/xjhq51n7xcsgb460hpm7aln0fhxspcav-python3-3.9.11-env/bin/python
lrwxrwxrwx 1 root root 74 Jan  1  1970 /nix/store/gnj076wl07n9g1cn4cvm2c84b6yp2bvf-buildEnvJL/bin/python3 -> /nix/store/xjhq51n7xcsgb460hpm7aln0fhxspcav-python3-3.9.11-env/bin/python3
lrwxrwxrwx 1 root root 76 Jan  1  1970 /nix/store/gnj076wl07n9g1cn4cvm2c84b6yp2bvf-buildEnvJL/bin/python3.9 -> /nix/store/xjhq51n7xcsgb460hpm7aln0fhxspcav-python3-3.9.11-env/bin/python3.9
lrwxrwxrwx 1 root root 83 Jan  1  1970 /nix/store/gnj076wl07n9g1cn4cvm2c84b6yp2bvf-buildEnvJL/bin/python3.9-config -> /nix/store/xjhq51n7xcsgb460hpm7aln0fhxspcav-python3-3.9.11-env/bin/python3.9-config
lrwxrwxrwx 1 root root 81 Jan  1  1970 /nix/store/gnj076wl07n9g1cn4cvm2c84b6yp2bvf-buildEnvJL/bin/python3-config -> /nix/store/xjhq51n7xcsgb460hpm7aln0fhxspcav-python3-3.9.11-env/bin/python3-config
lrwxrwxrwx 1 root root 80 Jan  1  1970 /nix/store/gnj076wl07n9g1cn4cvm2c84b6yp2bvf-buildEnvJL/bin/python-config -> /nix/store/xjhq51n7xcsgb460hpm7aln0fhxspcav-python3-3.9.11-env/bin/python-config

/nix/store/xjhq51n7xcsgb460hpm7aln0fhxspcav-python3-3.9.11-env/bin/python3.9
Python 3.9.11 (main, Mar 16 2022, 13:56:23) 
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pykeepass

Invalid file path:
/nix/store/xjhq51n7xcsgb460hpm7aln0fhxspcav-python3-3.9.11-env/bin/python3.9

Why is spyder not taking the nix path?
(direnv and lorri was in use but currently it is not doing what it did in 20.05 (so that nix python interpreter would be recognized in the folder without shebangs)?)