A matter of style/readability: I would rather add 
++ optionalString (pkgs.stdenv.system == "x86_64-linux" && cfg.driSupport32Bit) "
  ln -sf ${pkgs_i686.linuxPackages.nvidia_x11_legacy304.override { libsOnly = true; kernel = null; } } /run/opengl-driver-32
"