The reproducibility guarantees that Nix can provide are not quite the default;
you have to opt into it.
For a few years I've been using Vaibhav Sagar's
Quick and Easy Nixpkgs Pinning approach.
More recently I've started using Niv, a more fully-featured tool which does
just about the same thing.