you can substitute emmental, jarlsberg, or raclette cheese for gruyere in quiche. any of these swiss cheeses will be ideal, as they give off very similar flavor profiles to gruyere. it will also depend on the quiche recipe that you're trying to follow.