в bash.nix
PATH="/run/wrappers/bin:/home/user/.nix-profile/bin:/etc/profiles/per-user/user/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:${pkgs.android-studio}/jre/bin"
export |grep -i path
declare -x PATH="/run/wrappers/bin:/home/user/.nix-profile/bin:/etc/profiles/per-user/user/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/nix/store/97rj36ghpmc8z0g246vq3bqarvxycibj-android-studio-stable-3.5.3.0/jre/bin"
[user@nixos:~]$ ls /nix/store/97rj36ghpmc8z0g246vq3bqarvxycibj-android-studio-stable-3.5.3.0/
bin share
там нет jre
а в debian’e есть
ls /opt/android-studio/
bin build.txt Install-Linux-tar.txt jre lib license LICENSE.txt NOTICE.txt plugins product-info.json