Unexpected things found in my $PATH

When using emacs eaf, I found the python couldn’t found any modules installed by defined in configuration.nix.

So i tried that:

$ python -m PyQt5
/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/bin/python: No module named PyQt5
$ /run/current-system/sw/bin/python -m PyQt5
/nix/store/vdhzqlynygkjvhp2m582sy8jjw54li34-python3-3.7.6-env/bin/python3.7: No module named PyQt5.__main__; 'PyQt5' is a package and cannot be directly executed
$ echo $PATH
/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/bin:/nix/store
/hvx23rl0y684ssf5kfahkrypnnxpvn61-terminator-1.92/bin:/nix/store/p2csihllj91xyrn6vsg41bvj96q18yy6-
cairo-1.16.0-dev/bin:/nix/store/li92s0i9wiiz8wg4f0lijm8fdia5lz3m-freetype-2.10.1-dev/bin:/nix/store
/rw96psqzgyqrcd12qr6ivk9yiskjm3ab-bzip2-1.0.6.0.1-bin/bin:/nix/store
/i14i4db9zkdq7s4fs7h667i6rabps6sg-libpng-apng-1.6.37-dev/bin:/nix/store
/gyibcxa55pmfapwkcz7xprx51cnyl37g-fontconfig-2.12.6-bin/bin:/nix/store
/mi6r44lcgvipd3p1l1dfcx5lza1p3yqp-expat-2.2.8-dev/bin:/nix/store/jl99xzfpqdwnjdm1pjl6lmnlnbig6926-
glib-2.62.6-dev/bin:/nix/store/kpmbp2nlwzf6cdgq37phlf5kfdz8dbsv-gettext-0.20.1/bin:/nix/store
/8mbfpd1cmw9hy1g8b43bvd2d552z9w3v-glib-2.62.6-bin/bin:/nix/store
/6j9v0jcx2pdins58ask9drg66g3ih0dm-glib-2.62.6/bin:/run/wrappers/bin:/home/wzn/.local/share/flatpak
/exports/bin:/var/lib/flatpak/exports/bin:/home/wzn/.nix-profile/bin:/etc/profiles/per-user/wzn/bin:/nix
/var/nix/profiles/default/bin:/run/current-system/sw/bin
$ export PATH=/run/current-system/sw/bin:$PATH
$ python -m PyQt5
/nix/store/vdhzqlynygkjvhp2m582sy8jjw54li34-python3-3.7.6-env/bin/python3.7: No module named PyQt5.__main__; 'PyQt5' is a package and cannot be directly executed

I guessed it might be the part begin with “/nix/store/” ruin the $PATH.

So i tried the follows.

$ sudo su test
$ echo $PATH
/run/wrappers/bin:/home/test/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/test/.nix-
profile/bin:/etc/profiles/per-user/test/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin
$ python -m PyQt5
/nix/store/vdhzqlynygkjvhp2m582sy8jjw54li34-python3-3.7.6-env/bin/python3.7: No module named PyQt5.__main__; 'PyQt5' is a package and cannot be directly executed

Yes, it must be that! But what file messed my $PATH up? I tried a lot but can never find out it, can anyone know what happened with my $PATH?

I removed terminator in my configuration.nix, and nixos-rebuild switch, my $PATH was cleared likes a charm!

[wzn@nixos:~]$ echo $PATH
/run/wrappers/bin:/home/wzn/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/wzn/.nix-profile/bin:/etc/profiles/per-user/wzn/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin