https://www.myrecipes.com/extracrispy/green-chile-crisp

Makes about 1 quart of chile crisp

Ingredients

4 teaspoons kosher salt (if you only have table salt, cut that by half)
1 tablespoon sugar
3 teaspoons ground coriander
2 teaspoons ground cumin (fresh is best but whatever you have works)
3 1/2 cups vegetable oil or peanut oil
1 cup sliced garlic
3 cups finely chopped yellow onions
3/4 cup dried, crushed Hatch chiles
3/4 cup dried, crushed Anaheim chile
3/4 cup dried, crushed jalapeño
1 cup whole dried pequin peppers
1 teaspoon MSG or Accent
2/3 cup roasted, salted pepitas, chopped
2 teaspoons ground black pepper

Directions

1. Process your chiles. Grab a baking sheet, a cooling rack, a spice grinder, and a large heatproof bowl or pot—ideally 5 quarts or more, so you can pour hot oil into it without fear of it splashing all over you. For whole dried peppers, snip the tops off with kitchen shears and lightly crush them against the cooling rack—the aim is to get rid of the seeds. Then process in a spice grinder until they’re about the size of chile flakes. If all you have is crushed dried peppers, don’t worry that’ll work too—I found that running them through the grinder helped with a more even texture, but if you’re not worried about big chile flakes, you can put them right in the bowl.

2. Combine the Anaheim chiles, pequin chiles, jalepeños, Hatch chiles, cumin, coriander, salt, pepper, sugar, MSG, and pepitas in the bowl or saucepot.

3. Set up a plate or baking sheet somewhere easily in reach of the stove. Heat up the oil over high heat in a medium to large sauce pot (again, you want to avoid hot oil splashing arond which is not fun). Put in your sliced garlic and cook, stirring, untilt he garlic just begins to become golden brown. Then scoop the garlic out with a slotted spoon or strain using a mesh seive, making sure to reserve the oil. Let the garlic cool and crispy up while you put the oil back on the heat. Once it’s hot again, add the diced onion and let that cook until golden brown before removing the onion with a slotted spoon or seive, again reserving the oil and putting the garlic on a plate or baking sheet to cool and crisp up.

4. Heat the oil that you fried the garlic and onion in back up to 375 degrees. Carefully pour the oil over the spice mixture you’ve put in the heatproof bowl or saucepan. Let cool for at least half an hour, until the spice mixture bowl is cool to the touch. Combine the fried garlic and onion into the mixture. (You can also taste and adjust the salt level here.) Pour the finished crisp into jars and eat on everything. I’ve heard it can be in the fridge for up to three months, but mine has never lasted that long.