They all seems to come from outside of my repo, meaning in the flake inputs. What is the best approach to find exact source of the warning, so I can fix it or open some issues?
(edit: please note that on the screenshot update is just alias for nixos-rebuild switch --flake .#host)
You can try adding the --stacktrace flag to potentially get more information about where those deprecation warnings are coming from. The difficulty here is that stack traces produced by Nix can often be hard to comprehend; Especially when it involves Nixpkgs.
An alternative method (and what I would do personally) is to grab a clone of the Nixpkgs repo, check out the Nixpkgs commit referenced in your flake.lock, and then git grep for those deprecation warnings. That should point you to the exact *.nix files. Ex: git grep "cartesianProductOfSets instead".
Yes, but we also need to be aware that --impure does do so much more than just reading exactly the one environment variable you actually want to be read.
All of a sudden ~/.config/nixpkgs/overlay.nix is considered, or a config.nix in the same folder…