If this recipe for homemade trail mix lasts that long, you can store it in an airtight container for about a month. Nuts will tend to go rancid after a month.