Auto-optimisation is enabled by default. It can be turned off by setting auto-optimise-store to false in nix.conf.