Any sand not made from organic materials will be a perfect alternative for gnat nix. Fungus gnats search for moist soil with organic materials to lay their eggs. To ensure the sand layer works effectively, you need to ensure it covers all the topsoil. You cannot have the smallest patch exposed. Otherwise, the gnats will find it and continue reproducing.