Nix mostly does not guarantee deterministic output. It rather guarantees deterministic inputs, and then sandboxes the system to inhibit the build from accessing the outside world.
Deterministic inputs do not always imply deterministic outputs.
Indeed, the Reproducible Builds community is working on fixing non-deterministic build output https://reproducible-builds.org/
Indeed, the Reproducible Builds community is working on fixing non-deterministic build output https://reproducible-builds.org/