How to set locale in Nix shell on Ubuntu?

Cross-post from Unix Stack Exchange