
Just set them normally. Exporting them will propagate them to all executed programs such as bash (as used by nix-shell or nix run), and badness ensues when different formats are used.
*** NixOS *** NixOS is a Linux distribution based on the purely functional package management system Nix. More information can be found at http://nixos.org/nixos and in the manual in doc/manual.